Package org.springframework.data.rest.webmvc.json.JsonSchema

Examples of org.springframework.data.rest.webmvc.json.JsonSchema.Property


        ResourceMapping propertyMapping = metadata.getMappingFor(persistentProperty);
        ResourceDescription description = propertyMapping.getDescription();
        String message = resolveMessage(description);

        Property property = persistentProperty.isCollectionLike() ? //
        new ArrayProperty("array", message, false)
            : new Property(type, message, false);

        jsonSchema.addProperty(persistentProperty.getName(), property);
      }
    });
View Full Code Here

TOP

Related Classes of org.springframework.data.rest.webmvc.json.JsonSchema.Property

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.