braze-community / braze-specification Goto Github PK
View Code? Open in Web Editor NEW๐ Postman collection and OpenAPI spec for Braze API.
Home Page: https://npmjs.com/package/braze-specification
License: MIT License
๐ Postman collection and OpenAPI spec for Braze API.
Home Page: https://npmjs.com/package/braze-specification
License: MIT License
openapi-generator
generates spec without issues
openapi-generator
throws error:
Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 3, Warning count: 0
Errors:
-attribute paths.'//rest.example.braze.com/catalogs/{catalog_name}/items'(patch).requestBody.content with no media type is unsupported
-attribute paths.'//rest.example.braze.com/catalogs'(post).requestBody.content with no media type is unsupported
-attribute paths.'//rest.example.braze.com/catalogs/{catalog_name}/items'(post).requestBody.content with no media type is unsupported
at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:620)
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:647)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:479)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Exception in thread "main" java.lang.RuntimeException: Could not process operation:
Tag: class Tag {
name: Catalogs > Catalog Management > Synchronous
description: null
externalDocs: null
}
Operation: null
Resource: post //rest.example.braze.com/catalogs
Schemas: {}
Exception: Request body cannot be null. Possible cause: missing schema in body parameter (OAS v2): class RequestBody {
description: null
content: null
required: null
}
at org.openapitools.codegen.DefaultGenerator.processOperation(DefaultGenerator.java:1221)
at org.openapitools.codegen.DefaultGenerator.processPaths(DefaultGenerator.java:1115)
at org.openapitools.codegen.DefaultGenerator.generateApis(DefaultGenerator.java:586)
at org.openapitools.codegen.DefaultGenerator.generate(DefaultGenerator.java:949)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:487)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Caused by: java.lang.RuntimeException: Request body cannot be null. Possible cause: missing schema in body parameter (OAS v2): class RequestBody {
description: null
content: null
required: null
}
at org.openapitools.codegen.DefaultCodegen.fromRequestBody(DefaultCodegen.java:7362)
at org.openapitools.codegen.DefaultCodegen.fromOperation(DefaultCodegen.java:4489)
at org.openapitools.codegen.DefaultGenerator.processOperation(DefaultGenerator.java:1189)
... 6 more
openapi-generator generate -i openapi/spec.json -g php -o src
openapi-generator generate -i openapi/spec.json -g php -o src --skip-validate
-spec
N/A
openapi, error, exception
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.