> @crosslab/openapi-spec@0.0.1 openapi-lint > node generate.js && npx --yes @redocly/cli lint ./openapi.yml validating ./openapi.yml... [1] openapi.yml:2:1 at #/openapi Servers must be present. 1 | # yaml-language-server: $schema=https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json 2 | openapi: 3.1.0 3 | info: 4 | title: CrossLab REST API Warning was generated by the no-empty-servers rule. [2] openapi.yml:3:1 at #/info Info object should contain `license` field. 1 | # yaml-language-server: $schema=https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json 2 | openapi: 3.1.0 3 | info: 4 | title: CrossLab REST API 5 | description: |- Warning was generated by the info-license rule. [3] gen/CrossLab Device Service REST API (internal)-0.0.1.json:98:28 at #/paths/~1devices/post/requestBody/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'.  96 | "examples": {  97 | "microcontroller": {  98 | "value": {  99 | "name": "ATmega328P",  … | < 96 more lines > 196 | } 197 | } 198 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:92:33 at #/paths/~1devices/post/requestBody/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [4] gen/CrossLab Device Service REST API (internal)-0.0.1.json:102:29 at #/paths/~1devices/post/requestBody/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 100 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 101 | "owner": "https://api.example.com/groups/goldi", 102 | "type": "device", 103 | "services": [ 104 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:92:33 at #/paths/~1devices/post/requestBody/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [5] gen/CrossLab Device Service REST API (internal)-0.0.1.json:98:28 at #/paths/~1devices/post/requestBody/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'.  96 | "examples": {  97 | "microcontroller": {  98 | "value": {  99 | "name": "ATmega328P",  … | < 96 more lines > 196 | } 197 | } 198 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:92:33 at #/paths/~1devices/post/requestBody/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [6] gen/CrossLab Device Service REST API (internal)-0.0.1.json:98:28 at #/paths/~1devices/post/requestBody/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'.  96 | "examples": {  97 | "microcontroller": {  98 | "value": {  99 | "name": "ATmega328P",  … | < 96 more lines > 196 | } 197 | } 198 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:92:33 at #/paths/~1devices/post/requestBody/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [7] gen/CrossLab Device Service REST API (internal)-0.0.1.json:102:29 at #/paths/~1devices/post/requestBody/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 100 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 101 | "owner": "https://api.example.com/groups/goldi", 102 | "type": "device", 103 | "services": [ 104 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:92:33 at #/paths/~1devices/post/requestBody/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [8] gen/CrossLab Device Service REST API (internal)-0.0.1.json:98:28 at #/paths/~1devices/post/requestBody/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'.  96 | "examples": {  97 | "microcontroller": {  98 | "value": {  99 | "name": "ATmega328P",  … | < 96 more lines > 196 | } 197 | } 198 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:92:33 at #/paths/~1devices/post/requestBody/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [9] gen/CrossLab Device Service REST API (internal)-0.0.1.json:98:28 at #/paths/~1devices/post/requestBody/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'devices'.  96 | "examples": {  97 | "microcontroller": {  98 | "value": {  99 | "name": "ATmega328P",  … | < 96 more lines > 196 | } 197 | } 198 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:92:33 at #/paths/~1devices/post/requestBody/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [10] gen/CrossLab Device Service REST API (internal)-0.0.1.json:102:29 at #/paths/~1devices/post/requestBody/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 100 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 101 | "owner": "https://api.example.com/groups/goldi", 102 | "type": "device", 103 | "services": [ 104 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:92:33 at #/paths/~1devices/post/requestBody/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [11] gen/CrossLab Device Service REST API (internal)-0.0.1.json:98:28 at #/paths/~1devices/post/requestBody/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must match a schema in anyOf.  96 | "examples": {  97 | "microcontroller": {  98 | "value": {  99 | "name": "ATmega328P",  … | < 96 more lines > 196 | } 197 | } 198 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:92:33 at #/paths/~1devices/post/requestBody/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [12] gen/CrossLab Device Service REST API (internal)-0.0.1.json:212:30 at #/paths/~1devices/post/responses/201/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 210 | "examples": { 211 | "microcontroller": { 212 | "value": { 213 | "name": "ATmega328P",  … | < 96 more lines > 310 | } 311 | } 312 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:206:35 at #/paths/~1devices/post/responses/201/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [13] gen/CrossLab Device Service REST API (internal)-0.0.1.json:216:31 at #/paths/~1devices/post/responses/201/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 214 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 215 | "owner": "https://api.example.com/groups/goldi", 216 | "type": "device", 217 | "services": [ 218 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:206:35 at #/paths/~1devices/post/responses/201/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [14] gen/CrossLab Device Service REST API (internal)-0.0.1.json:212:30 at #/paths/~1devices/post/responses/201/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 210 | "examples": { 211 | "microcontroller": { 212 | "value": { 213 | "name": "ATmega328P",  … | < 96 more lines > 310 | } 311 | } 312 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:206:35 at #/paths/~1devices/post/responses/201/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [15] gen/CrossLab Device Service REST API (internal)-0.0.1.json:212:30 at #/paths/~1devices/post/responses/201/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 210 | "examples": { 211 | "microcontroller": { 212 | "value": { 213 | "name": "ATmega328P",  … | < 96 more lines > 310 | } 311 | } 312 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:206:35 at #/paths/~1devices/post/responses/201/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [16] gen/CrossLab Device Service REST API (internal)-0.0.1.json:216:31 at #/paths/~1devices/post/responses/201/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 214 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 215 | "owner": "https://api.example.com/groups/goldi", 216 | "type": "device", 217 | "services": [ 218 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:206:35 at #/paths/~1devices/post/responses/201/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [17] gen/CrossLab Device Service REST API (internal)-0.0.1.json:212:30 at #/paths/~1devices/post/responses/201/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 210 | "examples": { 211 | "microcontroller": { 212 | "value": { 213 | "name": "ATmega328P",  … | < 96 more lines > 310 | } 311 | } 312 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:206:35 at #/paths/~1devices/post/responses/201/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [18] gen/CrossLab Device Service REST API (internal)-0.0.1.json:212:30 at #/paths/~1devices/post/responses/201/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'devices'. 210 | "examples": { 211 | "microcontroller": { 212 | "value": { 213 | "name": "ATmega328P",  … | < 96 more lines > 310 | } 311 | } 312 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:206:35 at #/paths/~1devices/post/responses/201/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [19] gen/CrossLab Device Service REST API (internal)-0.0.1.json:216:31 at #/paths/~1devices/post/responses/201/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 214 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 215 | "owner": "https://api.example.com/groups/goldi", 216 | "type": "device", 217 | "services": [ 218 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:206:35 at #/paths/~1devices/post/responses/201/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [20] gen/CrossLab Device Service REST API (internal)-0.0.1.json:212:30 at #/paths/~1devices/post/responses/201/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must match a schema in anyOf. 210 | "examples": { 211 | "microcontroller": { 212 | "value": { 213 | "name": "ATmega328P",  … | < 96 more lines > 310 | } 311 | } 312 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:206:35 at #/paths/~1devices/post/responses/201/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [21] gen/CrossLab Device Service REST API (internal)-0.0.1.json:436:30 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 434 | "examples": { 435 | "microcontroller": { 436 | "value": { 437 | "name": "ATmega328P",  … | < 96 more lines > 534 | } 535 | } 536 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:430:35 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [22] gen/CrossLab Device Service REST API (internal)-0.0.1.json:440:31 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 438 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 439 | "owner": "https://api.example.com/groups/goldi", 440 | "type": "device", 441 | "services": [ 442 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:430:35 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [23] gen/CrossLab Device Service REST API (internal)-0.0.1.json:436:30 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 434 | "examples": { 435 | "microcontroller": { 436 | "value": { 437 | "name": "ATmega328P",  … | < 96 more lines > 534 | } 535 | } 536 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:430:35 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [24] gen/CrossLab Device Service REST API (internal)-0.0.1.json:436:30 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 434 | "examples": { 435 | "microcontroller": { 436 | "value": { 437 | "name": "ATmega328P",  … | < 96 more lines > 534 | } 535 | } 536 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:430:35 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [25] gen/CrossLab Device Service REST API (internal)-0.0.1.json:440:31 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 438 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 439 | "owner": "https://api.example.com/groups/goldi", 440 | "type": "device", 441 | "services": [ 442 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:430:35 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [26] gen/CrossLab Device Service REST API (internal)-0.0.1.json:436:30 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 434 | "examples": { 435 | "microcontroller": { 436 | "value": { 437 | "name": "ATmega328P",  … | < 96 more lines > 534 | } 535 | } 536 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:430:35 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [27] gen/CrossLab Device Service REST API (internal)-0.0.1.json:436:30 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'devices'. 434 | "examples": { 435 | "microcontroller": { 436 | "value": { 437 | "name": "ATmega328P",  … | < 96 more lines > 534 | } 535 | } 536 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:430:35 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [28] gen/CrossLab Device Service REST API (internal)-0.0.1.json:440:31 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 438 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 439 | "owner": "https://api.example.com/groups/goldi", 440 | "type": "device", 441 | "services": [ 442 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:430:35 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [29] gen/CrossLab Device Service REST API (internal)-0.0.1.json:436:30 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must match a schema in anyOf. 434 | "examples": { 435 | "microcontroller": { 436 | "value": { 437 | "name": "ATmega328P",  … | < 96 more lines > 534 | } 535 | } 536 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:430:35 at #/paths/~1devices~1{device_id}/get/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [30] gen/CrossLab Device Service REST API (internal)-0.0.1.json:2477:17 at #/components/parameters/device_id/name Path parameter `device_id` is not used in the path `{$request.query.changedUrl}`. 2475 | "device_id": { 2476 | "in": "path", 2477 | "name": "device_id", 2478 | "description": "UUID of the device", 2479 | "required": true, Warning was generated by the path-parameters-defined rule. [31] gen/CrossLab Device Service REST API (internal)-0.0.1.json:2477:17 at #/components/parameters/device_id/name Path parameter `device_id` is not used in the path `{$request.query.changedUrl}`. 2475 | "device_id": { 2476 | "in": "path", 2477 | "name": "device_id", 2478 | "description": "UUID of the device", 2479 | "required": true, Warning was generated by the path-parameters-defined rule. [32] gen/CrossLab Device Service REST API (internal)-0.0.1.json:704:30 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 702 | "examples": { 703 | "microcontroller": { 704 | "value": { 705 | "name": "ATmega328P",  … | < 96 more lines > 802 | } 803 | } 804 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:698:35 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [33] gen/CrossLab Device Service REST API (internal)-0.0.1.json:708:31 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 706 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 707 | "owner": "https://api.example.com/groups/goldi", 708 | "type": "device", 709 | "services": [ 710 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:698:35 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [34] gen/CrossLab Device Service REST API (internal)-0.0.1.json:704:30 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 702 | "examples": { 703 | "microcontroller": { 704 | "value": { 705 | "name": "ATmega328P",  … | < 96 more lines > 802 | } 803 | } 804 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:698:35 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [35] gen/CrossLab Device Service REST API (internal)-0.0.1.json:704:30 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 702 | "examples": { 703 | "microcontroller": { 704 | "value": { 705 | "name": "ATmega328P",  … | < 96 more lines > 802 | } 803 | } 804 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:698:35 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [36] gen/CrossLab Device Service REST API (internal)-0.0.1.json:708:31 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 706 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 707 | "owner": "https://api.example.com/groups/goldi", 708 | "type": "device", 709 | "services": [ 710 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:698:35 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [37] gen/CrossLab Device Service REST API (internal)-0.0.1.json:704:30 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'url'. 702 | "examples": { 703 | "microcontroller": { 704 | "value": { 705 | "name": "ATmega328P",  … | < 96 more lines > 802 | } 803 | } 804 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:698:35 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [38] gen/CrossLab Device Service REST API (internal)-0.0.1.json:704:30 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must have required property 'devices'. 702 | "examples": { 703 | "microcontroller": { 704 | "value": { 705 | "name": "ATmega328P",  … | < 96 more lines > 802 | } 803 | } 804 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:698:35 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [39] gen/CrossLab Device Service REST API (internal)-0.0.1.json:708:31 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json/examples/microcontroller/value/type Example value must conform to the schema: `type` property must be equal to constant. 706 | "description": "8-bit AVR Microcontroller with 32K Bytes In-System Programmable Flash", 707 | "owner": "https://api.example.com/groups/goldi", 708 | "type": "device", 709 | "services": [ 710 | { referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:698:35 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. [40] gen/CrossLab Device Service REST API (internal)-0.0.1.json:704:30 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json/examples/microcontroller/value Example value must conform to the schema: must match a schema in anyOf. 702 | "examples": { 703 | "microcontroller": { 704 | "value": { 705 | "name": "ATmega328P",  … | < 96 more lines > 802 | } 803 | } 804 | } referenced from gen/CrossLab Device Service REST API (internal)-0.0.1.json:698:35 at #/paths/~1devices~1{device_id}/patch/responses/200/content/application~1json Warning was generated by the no-invalid-media-type-examples rule. ./openapi.yml: validated in 256ms Woohoo! Your OpenAPI definition is valid. 🎉 You have 40 warnings.