Skip to content

Instantly share code, notes, and snippets.

@emanb29
Last active February 9, 2023 18:38
Show Gist options
  • Select an option

  • Save emanb29/51f5ae8a5c822672308bc04fb918f407 to your computer and use it in GitHub Desktop.

Select an option

Save emanb29/51f5ae8a5c822672308bc04fb918f407 to your computer and use it in GitHub Desktop.
{
"openapi": "3.0.0",
"paths": {},
"servers": [
{"url": "http://localhost:8080"},
{"url": "https://saas.dev.thatdot.com/api/v1/quines/emanb29/prose"}
]
"components": {
"schemas": {
"com.thatdot.quine.routes.UiNodeLabel": {
"description": "Instructions for how to label a node in the UI.",
"title": "UI Node Label",
"oneOf": [
{
"description": "Use a specified, fixed value as a label.",
"title": "Fixed Label",
"type": "object",
"example": {
"type": "Constant",
"value": "This is a constant label"
}
"properties": {
"type": {
"example": "Constant",
"type": "string",
"enum": [
"Constant"
]
},
"value": {
"type": "string"
}
},
"required": [
"type",
"value"
]
},
{
"description": "Use the value of a property as a label, with an optional prefix.",
"title": "Property Value Label",
"type": "object",
"example": {
"type": "Property",
"key": "foo"
}
"properties": {
"type": {
"example": "Property",
"type": "string",
"enum": [
"Property"
]
},
"key": {
"type": "string"
},
"prefix": {
"type": "string"
}
},
"required": [
"type",
"key"
]
}
],
"discriminator": {
"propertyName": "type"
}
}
},
"securitySchemes": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment