-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from MobileTeleSystems/feture/upd_sdk
Add Schema
- Loading branch information
Showing
4 changed files
with
87 additions
and
3 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
2 changes: 1 addition & 1 deletion
2
ApiCodeGenerator.OpenApi.Refit/ApiCodeGenerator.OpenApi.Refit.csproj
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"allOf": [ | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/MobileTeleSystems/ApiCodeGenerator/refs/heads/dev/schemas/nswag.json#/definitions/nswagDocument" | ||
}, | ||
{ | ||
"properties": { | ||
"codeGenerators": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/openApiToRefit" | ||
}, | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/MobileTeleSystems/ApiCodeGenerator/refs/heads/master/schemas/nswag.json#/definitions/codeGenerators" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"definitions": { | ||
"openApiToRefit": { | ||
"additionalProperties": false, | ||
"properties": { | ||
"openApiToRefitClient": { | ||
"description": "Generates a client description for the Refit library", | ||
"$ref": "#/definitions/refitGeneratorSettings" | ||
} | ||
}, | ||
"required": [ | ||
"openApiToRefitClient" | ||
] | ||
}, | ||
"refitGeneratorSettings": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "https://raw.githubusercontent.com/MobileTeleSystems/ApiCodeGenerator/refs/heads/master/schemas/nswag.json#/definitions/csGeneratorBaseSettings" | ||
}, | ||
{ | ||
"properties": { | ||
"clientBaseInterface": { | ||
"type": "boolean", | ||
"description": "The full name of the base interface." | ||
}, | ||
"interfaceAccessModifier": { | ||
"type": "string", | ||
"description": "The client interface access modifier (default: public).", | ||
"default": "public" | ||
}, | ||
"operationAsyncSuffix": { | ||
"type": "boolean", | ||
"description": "Value indicating whether to append 'Async' suffix to the method name." | ||
}, | ||
"operationCancelationToken": { | ||
"type": "boolean", | ||
"description": "Value indicating whether to add the cancellation token to the parameter list." | ||
}, | ||
"pathExtractExpression": { | ||
"type": "string", | ||
"description": "The Regular expression for getting the operation path." | ||
}, | ||
"wrapQueryParmetersMethods": { | ||
"type": "array", | ||
"description": "The list of methods where query parameters are wrapped (\"ControllerName.MethodName\", '*' may be used).", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"authorizationHeaderParameter": { | ||
"type": "boolean", | ||
"description": "Value indicating whether to add the authorization header to the parameter list." | ||
}, | ||
"binaryPartType": { | ||
"type": "string", | ||
"description": "The .NET type used for binary data (default: StreamPart).", | ||
"default": "StreamPart" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |