public static JsonSchema createFromDatabase ( final App app , final List < String > types ) throws FrameworkException , URISyntaxException { try ( final Tx tx = app . tx ( ) ) { final JsonSchema schema = StructrSchemaDefinition . initializeFromDatabase ( app , types ) ; tx . success ( ) ; return schema ; } }
Creates JsonSchema instance from the current schema in Structr including only a subset of schema nodes .