@hey-api/json-schema-ref-parser
Version:
Parse, Resolve, and Dereference JSON Schema $ref pointers
78 lines • 1.59 kB
JSON
{
"openapi": "3.0.0",
"info": {
"title": "Test API",
"version": "1.0.0"
},
"paths": {
"/resolution": {
"get": {
"summary": "Get resolution step",
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ResolutionStep"
}
}
}
}
}
}
},
"/action": {
"get": {
"summary": "Get action info",
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ActionInfo"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ActionInfo": {
"type": "object",
"properties": {
"ActionId": {
"type": "string"
}
}
},
"ResolutionStep": {
"type": "object",
"properties": {
"ResolutionType": {
"oneOf": [
{
"$ref": "#/components/schemas/ResolutionType"
}
]
},
"ActionName": {
"type": "string"
}
}
},
"ResolutionType": {
"type": "string",
"enum": [
"ContactVendor",
"ResetToDefaults",
"RetryOperation"
]
}
}
}
}