Skip to content

Commit

Permalink
[OAS] Better support for enums (elastic#188198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens authored Jul 16, 2024
1 parent 393375a commit 46a457e
Show file tree
Hide file tree
Showing 6 changed files with 227 additions and 289 deletions.
184 changes: 40 additions & 144 deletions oas_docs/bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,14 @@
"additionalProperties": false,
"properties": {
"level": {
"anyOf": [
{
"enum": [
"available"
],
"type": "string"
},
{
"enum": [
"degraded"
],
"type": "string"
},
{
"enum": [
"unavailable"
],
"type": "string"
},
{
"enum": [
"critical"
],
"type": "string"
}
"description": "Service status levels as human and machine readable values.",
"enum": [
"available",
"degraded",
"unavailable",
"critical"
],
"description": "Service status levels as human and machine readable values."
"type": "string"
}
},
"required": [
Expand Down Expand Up @@ -129,33 +110,14 @@
"type": "string"
},
"level": {
"anyOf": [
{
"enum": [
"available"
],
"type": "string"
},
{
"enum": [
"degraded"
],
"type": "string"
},
{
"enum": [
"unavailable"
],
"type": "string"
},
{
"enum": [
"critical"
],
"type": "string"
}
"description": "Service status levels as human and machine readable values.",
"enum": [
"available",
"degraded",
"unavailable",
"critical"
],
"description": "Service status levels as human and machine readable values."
"type": "string"
},
"meta": {
"additionalProperties": {},
Expand Down Expand Up @@ -186,33 +148,14 @@
"type": "string"
},
"level": {
"anyOf": [
{
"enum": [
"available"
],
"type": "string"
},
{
"enum": [
"degraded"
],
"type": "string"
},
{
"enum": [
"unavailable"
],
"type": "string"
},
{
"enum": [
"critical"
],
"type": "string"
}
"description": "Service status levels as human and machine readable values.",
"enum": [
"available",
"degraded",
"unavailable",
"critical"
],
"description": "Service status levels as human and machine readable values."
"type": "string"
},
"meta": {
"additionalProperties": {},
Expand Down Expand Up @@ -250,33 +193,14 @@
"type": "string"
},
"level": {
"anyOf": [
{
"enum": [
"available"
],
"type": "string"
},
{
"enum": [
"degraded"
],
"type": "string"
},
{
"enum": [
"unavailable"
],
"type": "string"
},
{
"enum": [
"critical"
],
"type": "string"
}
"description": "Service status levels as human and machine readable values.",
"enum": [
"available",
"degraded",
"unavailable",
"critical"
],
"description": "Service status levels as human and machine readable values."
"type": "string"
},
"meta": {
"additionalProperties": {},
Expand Down Expand Up @@ -308,33 +232,14 @@
"type": "string"
},
"level": {
"anyOf": [
{
"enum": [
"available"
],
"type": "string"
},
{
"enum": [
"degraded"
],
"type": "string"
},
{
"enum": [
"unavailable"
],
"type": "string"
},
{
"enum": [
"critical"
],
"type": "string"
}
"description": "Service status levels as human and machine readable values.",
"enum": [
"available",
"degraded",
"unavailable",
"critical"
],
"description": "Service status levels as human and machine readable values."
"type": "string"
},
"meta": {
"additionalProperties": {},
Expand Down Expand Up @@ -376,21 +281,12 @@
"type": "string"
},
"build_flavor": {
"anyOf": [
{
"enum": [
"serverless"
],
"type": "string"
},
{
"enum": [
"traditional"
],
"type": "string"
}
"description": "The build flavour determines configuration and behavior of Kibana. On premise users will almost always run the \"traditional\" flavour, while other flavours are reserved for Elastic-specific use cases.",
"enum": [
"serverless",
"traditional"
],
"description": "The build flavour determines configuration and behavior of Kibana. On premise users will almost always run the \"traditional\" flavour, while other flavours are reserved for Elastic-specific use cases."
"type": "string"
},
"build_hash": {
"description": "A unique hash value representing the git commit of this Kibana build.",
Expand Down
Loading

0 comments on commit 46a457e

Please sign in to comment.