6/6/2023 0 Comments Use speccy![]() Thanks to the -json-schema switch, you can have an OpenAPI file which $refs JSON Schema files (not just OpenAPI-flavoured JSON Schema), then resolve them all into one real OpenAPI file, thanks to wework/json-schema-to-openapi-schema. It avoid cyclical dependencies (when A has a property that $refs A, which in turn destroys your CPU), and all sorts of other things. ![]() Starting with the fantastic resolver logic form swagger2openapi, speccy has one of the most robust v, -verbose set verbosity (use multiple times to increase level) j, -json-schema treat $ref like JSON Schema and convert to OpenAPI Schema Objects Pull in external $ref files to create one mega-file
0 Comments
Leave a Reply. |