-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add openAPI generator configuration file
Introduces an openapitools.json file to support API generation. Updated dependencies in package-lock.json, including @openapitools/openapi-generator-cli. Modified package.json script for API generation to ensure previous sources are removed before generating new ones. Removed the openapitools.json entry from .gitignore to track the configuration file.
- Loading branch information
1 parent
210c000
commit 0a4a835
Showing
4 changed files
with
65 additions
and
40 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", | ||
"spaces": 2, | ||
"generator-cli": { | ||
"version": "7.8.0", | ||
"generators": { | ||
"StudyManagerAPI": { | ||
"inputSpec": "openapi/StudyManagerAPI.yaml", | ||
"generatorName": "typescript-axios", | ||
"output": "src/generated-sources/openapi", | ||
"additionalProperties": { | ||
"supportsES6": true, | ||
"withSeparateModelsAndApi": true, | ||
"withInterfaces": true, | ||
"apiPackage": "api", | ||
"modelPackage": "models" | ||
}, | ||
"typeMappings": { | ||
"set": "Array" | ||
} | ||
} | ||
} | ||
} | ||
} |
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