Skip to content

feat: Yaml support#2

Merged
sumansaurabh merged 4 commits into
mainfrom
yaml_support
Jun 9, 2024
Merged

feat: Yaml support#2
sumansaurabh merged 4 commits into
mainfrom
yaml_support

Conversation

@sumansaurabh
Copy link
Copy Markdown
Collaborator

@sumansaurabh sumansaurabh commented Jun 9, 2024

This pull request primarily focuses on renaming the openapi-code-gen JavaScript library to penify-oapi-codegen and enhancing its functionalities. The changes include updating the library name in the README.md and package.json files, adding support for YAML OpenAPI schemas, and adding a feature to display supported languages.

Here are the most significant changes:

Renaming and version changes:

  • README.md: The library name has been changed from openapi-code-gen to penify-oapi-codegen. All instances of the old name in the documentation have been updated to reflect this change. [1] [2] [3]
  • package.json: The library name has been updated to penify-oapi-codegen and the version has been incremented from 1.0.0 to 1.0.1. [1] [2]

Functionality enhancements:

  • src/OpenAPIHelper.js: Added support for YAML OpenAPI schemas by using the js-yaml library. A new method getSupportedLanguagesAndVariants has been added to get a list of supported languages and variants. [1] [2] [3]
  • src/index.js: Added a new command-line option -s to display the list of supported languages and variants. Also, the input file extension is now considered while generating the output file name. [1] [2]

Other changes:

  • README.md: The author's name has been updated.
  • package.json: The version of the postman-code-generators dependency has been updated.
  • src/OpenAPIHelper.js: The location for storing the generated sample code has been changed from sample_code to /tmp/sample_code. [1] [2]

…argument handling, and generate sample code for all languages and variants in OpenAPIHelper
…argument handling, and generate sample code for all languages and variants in OpenAPIHelper
@sumansaurabh sumansaurabh changed the title Yaml support feat: Yaml support Jun 9, 2024
@sumansaurabh sumansaurabh merged commit 168d4b9 into main Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant