{ "openapi" : "3.0.0", "info" : { "description" : "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.", "license" : { "name" : "Apache-2.0", "url" : "https://www.apache.org/licenses/LICENSE-2.0.html" }, "title" : "OpenAPI Petstore", "version" : "1.0.0" }, "servers" : [ { "url" : "https://petstore.swagger.io/v2" } ], "tags" : [ { "name" : "pet", "description" : "Everything about your Pets" }, { "name" : "store", "description" : "Access to Petstore orders" }, { "name" : "user", "description" : "Operations about user" } ], "paths" : { "/pet" : { "put" : { "tags" : [ "pet" ], "summary" : "Update an existing pet", "description" : "", "operationId" : "updatePet", "requestBody" : { "$ref" : "#/components/requestBodies/Pet" }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/xml" : { "schema" : { "$ref" : "#/components/schemas/Pet" } }, "application/json" : { "schema" : { "$ref" : "#/components/schemas/Pet" } } } }, "400" : { "description" : "Invalid ID supplied" }, "404" : { "description" : "Pet not found" }, "405" : { "description" : "Validation exception" } }, "security" : [ { "petstore_auth" : [ "write:pets", "read:pets" ] } ] }, "post" : { "tags" : [ "pet" ], "summary" : "Add a new pet to the store", "description" : "", "operationId" : "addPet", "requestBody" : { "$ref" : "#/components/requestBodies/Pet" }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/xml" : { "schema" : { "$ref" : "#/components/schemas/Pet" } }, "application/json" : { "schema" : { "$ref" : "#/components/schemas/Pet" } } } }, "405" : { "description" : "Invalid input" } }, "security" : [ { "petstore_auth" : [ "write:pets", "read:pets" ] } ] } } java.util.List<Sensor> sensors = new ArrayList<>(); for (Ref sensorRef : getRequiredSensorList()) { sensors.add(sensorRef.asSensor()); } return sensors; }