-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Squidex/squidex
- Loading branch information
Showing
20 changed files
with
389 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Prepare - Checkout | ||
uses: actions/checkout@v4.0.0 | ||
uses: actions/checkout@v4.1.0 | ||
|
||
- name: Prepare - Inject short Variables | ||
uses: rlespinasse/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Prepare - Checkout | ||
uses: actions/checkout@v4.0.0 | ||
uses: actions/checkout@v4.1.0 | ||
|
||
- name: Prepare - Inject short Variables | ||
uses: rlespinasse/[email protected] | ||
|
9 changes: 9 additions & 0 deletions
9
backend/src/Squidex.Domain.Apps.Core.Model/FieldDescriptions.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
backend/src/Squidex/Areas/Api/Config/OpenApi/AcceptAnyBodyAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// ========================================================================== | ||
// Squidex Headless CMS | ||
// ========================================================================== | ||
// Copyright (c) Squidex UG (haftungsbeschraenkt) | ||
// All rights reserved. Licensed under the MIT license. | ||
// ========================================================================== | ||
|
||
using NJsonSchema; | ||
using NSwag; | ||
using NSwag.Annotations; | ||
using NSwag.Generation.Processors; | ||
using NSwag.Generation.Processors.Contexts; | ||
using Squidex.Domain.Apps.Core; | ||
|
||
namespace Squidex.Areas.Api.Config.OpenApi; | ||
|
||
public sealed class AcceptAnyBodyAttribute : OpenApiOperationProcessorAttribute | ||
{ | ||
public AcceptAnyBodyAttribute() | ||
: base(typeof(Processor)) | ||
{ | ||
} | ||
|
||
public sealed class Processor : IOperationProcessor | ||
{ | ||
public bool Process(OperationProcessorContext context) | ||
{ | ||
context.OperationDescription.Operation.Parameters.Add( | ||
new OpenApiParameter | ||
{ | ||
Name = "request", | ||
Kind = OpenApiParameterKind.Body, | ||
Schema = new JsonSchema | ||
{ | ||
}, | ||
Description = FieldDescriptions.GraphqlRequest | ||
}); | ||
|
||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.