We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current gen-api-docs command does not support generating docs with enum mapping The doc will fail to build eventually
The docs should build successfully
With following schema
{ "openapi": "3.1.0", "info": { "title": "Service API Document", "version": "0.1" }, "tags": [], "paths": { "/deliver": { "post": { "summary": "deliver <POST>", "operationId": "deliver", "description": "", "tags": [], "parameters": [], "responses": {}, "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeliverBody" } } } } } }, "/read-sensors": { "get": { "summary": "read_sensors <GET>", "operationId": "readSensors", "description": "", "tags": [], "parameters": [], "responses": {} } } }, "components": { "schemas": { "DeliverBody": { "additionalProperties": false, "properties": { "side": { "$ref": "#/components/schemas/ExecutionCommand" } }, "required": [ "side" ], "title": "DeliverBody", "type": "object" }, "ExecutionCommand": { "oneOf": [ { "const": 0, "title": "NO_COMMAND" }, { "const": 1, "title": "DELIVER_LEFT" }, { "const": 2, "title": "DELIVER_RIGHT" } ], "title": "ExecutionCommand", "type": "integer" } } } }
It will build with an empty <SchemaTab>
<SchemaTab>
<div> <span className={"badge badge--info"} > oneOf </span><SchemaTabs> </SchemaTabs> </div>
Then the docs will fail to build
Support enum mapping.
We need to build docs with enum support
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Current gen-api-docs command does not support generating docs with enum mapping
The doc will fail to build eventually
Expected behavior
The docs should build successfully
Current behavior
With following schema
It will build with an empty
<SchemaTab>
Then the docs will fail to build
Possible solution
Support enum mapping.
Steps to reproduce
Screenshots
Context
We need to build docs with enum support
Your Environment
The text was updated successfully, but these errors were encountered: