@SuppressWarnings("static-method") public Schema modelFromProperty(ArraySchema object, @SuppressWarnings("unused") String path) { String description = object.getDescription(); String example = null; Object obj = object.getExample(); if (obj != null) { example = obj.toString(); } Schema inner = object.getItems(); if (inner instanceof ObjectSchema) { ArraySchema model = new ArraySchema(); model.setDescription(description); model.setExample(example); model.setItems(object.getItems()); return model; } return null; }
@SuppressWarnings("static-method") public Schema modelFromProperty(ArraySchema object, @SuppressWarnings("unused") String path) { String description = object.getDescription(); String example = null; Object obj = object.getExample(); if (obj != null) { example = obj.toString(); } Schema inner = object.getItems(); if (inner instanceof ObjectSchema) { ArraySchema model = new ArraySchema(); model.setDescription(description); model.setExample(example); model.setItems(object.getItems()); return model; } return null; }
@SuppressWarnings("static-method") public Schema modelFromProperty(ArraySchema object, @SuppressWarnings("unused") String path) { String description = object.getDescription(); String example = null; Object obj = object.getExample(); if (obj != null) { example = obj.toString(); } Schema inner = object.getItems(); if (inner instanceof ObjectSchema) { ArraySchema model = new ArraySchema(); model.setDescription(description); model.setExample(example); model.setItems(object.getItems()); return model; } return null; }
@SuppressWarnings("static-method") public Schema modelFromProperty(ArraySchema object, @SuppressWarnings("unused") String path) { String description = object.getDescription(); String example = null; Object obj = object.getExample(); if (obj != null) { example = obj.toString(); } Schema inner = object.getItems(); if (inner instanceof ObjectSchema) { ArraySchema model = new ArraySchema(); model.setDescription(description); model.setExample(example); model.setItems(object.getItems()); model.setName(object.getName()); return model; } return null; }