Open jonaslagoni opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart:
@jonaslagoni still valid?
@AnimeshKumar923 yes, this is still valid.
I would like to work on this
Hey @jonaslagoni can you please share how one can reproduce or test this particular thing in local development.
You can use the following input:
{
"asyncapi": "2.5.0",
"info": {
"title": "Streetlights API",
"version": "1.0.0",
"description": "The Smartylighting Streetlights API allows you\nto remotely manage the city lights.\n",
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0"
}
},
"servers": {
"mosquitto": {
"url": "mqtt://test.mosquitto.org",
"protocol": "mqtt"
}
},
"channels": {
"light/measured": {
"publish": {
"summary": "Inform about environmental lighting conditions for a particular streetlight.",
"operationId": "onLightMeasured",
"message": {
"name": "LightMeasured",
"payload": {
"type": "object",
"$id": "LightMeasured",
"properties": {
"id": {
"type": "integer",
"minimum": 0,
"description": "Id of the streetlight."
},
"lumens": {
"type": "integer",
"oneOf": [
{
"title": "HIGH",
"const": 2,
"description": "An urgent problem"
},
{
"title": "MEDIUM",
"const": 1
},
{
"title": "LOW",
"const": 0,
"description": "Can wait forever"
}
]
},
"sentAt": {
"type": "string",
"format": "date-time",
"description": "Date and time when the message was sent."
}
}
}
}
}
}
}
}
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience :heart:
Reason/Context
A new pattern emerged for JSON Schema that enable you to define enums with key and value.
Which expect to be rendered as the following:
But currently is split out into 3 enums:
To solve this I expect the following change is needed: