public IEntityJsonSchemaContext validate ( EntityJsonParser parser ) throws SchemaValidationException , NoSchemaException , InvalidSchemaException { StringBuffer ubuf = new StringBuffer ( "https://symphonyosf.github.io/symphony-object/proposed" ) ; for ( String part : type_ . split ( "\\." ) ) { ubuf . append ( "/" ) ; ubuf . append ( part ) ; } ubuf . append ( "-v" ) ; ubuf . append ( majorVersion_ ) ; ubuf . append ( "_" ) ; ubuf . append ( minorVersion_ ) ; ubuf . append ( ".json" ) ; try { return parser . validate ( new URL ( ubuf . toString ( ) ) , instanceSource_ , jsonNode_ ) ; } catch ( MalformedURLException e ) { throw new InvalidSchemaException ( null , e ) ; } }
Validate this object against the specific schema for this type from the official repo .