-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
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
x-parser-schema-id getting rendered in html docs #15
Comments
This issue has been automatically marked as stale because it has not had recent activity 😴 |
I have the same issue. yaml file asyncapi: 2.0.0
info:
title: Test
version: '1.0.0'
defaultContentType: application/json
channels:
container/create:
description: Create container
publish:
message:
$ref: '#/components/messages/containerCreateRequest'
subscribe:
message:
$ref: '#/components/messages/containerCreateResponse'
components:
schemas:
Container:
id:
type: id
barcode:
type: string
BaseRequest:
action:
type: string
description: "Requested action name. Generally it is in <controller>/<action> format"
uuid:
type: string
description: "UUID number used to match request with responses if nececary"
payload:
oneOf:
- type: array
description: "Request payload"
- type: None
BaseResponse:
action:
type: string
description: "Requested action name. Generally it is in <controller>/<action> format"
code:
type: integer
description: "Actions response code. It mostly follows http status codes"
enum:
- 200
- 400
- 401
- 403
- 500
uuid:
type: string
description: "UUID number used to match request with responses if nececary"
payload:
oneOf:
- type: array
description: "Response payload"
- type: None
messages:
containerCreateRequest:
payload:
type: object
required:
- action
properties:
$ref: "#/components/schemas/BaseRequest"
payload:
type: object
properties:
sender_unit:
type: string
description: Unit's id or fcd code
addressee_unit:
type: string
description: Unit's id or fcd code
consignment_type:
type: string
description: containers consignment id or label
source_id:
type: integer
description: System id
containerCreateResponse:
payload:
type: object
required:
- action
- code
properties:
$ref: "#/components/schemas/BaseResponse"
payload:
type: object
properties:
$ref: "#/components/schemas/Container" Generated bad section {
"payload": {
"id": null,
"barcode": "string",
"x-parser-schema-id": null
},
"action": "string",
"code": 200,
"uuid": "string"
} |
|
we need to have the proper condition here to not render any property that starts with |
video explanation on how to work on this issue https://youtu.be/Iqs_2BiNEEo?t=329 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
@magicmatatjahu yo, I'm not sure if I should reopen this one, how does it look like in react component? |
@derberg Generation for examples are not yet rewritten for the "new" component. I will reopen it and I remember about this issue to check and fix in component :) |
It will be fixed in #166 |
Fixed in |
Describe the bug
HTML Template example is getting rendered with
x-parser-schema-id: null
. The docs just render with the wordx-parser-schema-id
How to Reproduce
under messages I have:
Expected behavior
That
x-parser-schema-id
doesn't render. Could definitely be user error but either way I don't think the internal metadata should be outputted.The text was updated successfully, but these errors were encountered: