@Override public SchemaIdVersion addSchemaVersion(String schemaBranchName, SchemaMetadata schemaMetadata, SchemaVersion schemaVersion) throws InvalidSchemaException, IncompatibleSchemaException, SchemaNotFoundException, SchemaBranchNotFoundException { return schemaRegistry.addSchemaVersion(schemaBranchName, schemaMetadata, schemaVersion); }
try { LOG.info("adding schema version for name [{}] with [{}]", schemaName, schemaVersion); SchemaIdVersion version = schemaRegistry.addSchemaVersion(schemaBranchName, schemaName, schemaVersion); response = WSUtils.respondEntity(version.getVersion(), Response.Status.CREATED); } catch (InvalidSchemaException ex) {
try { LOG.info("adding schema version for name [{}] with [{}]", schemaName, schemaVersion); SchemaIdVersion version = schemaRegistry.addSchemaVersion(schemaBranchName, schemaName, schemaVersion); response = WSUtils.respondEntity(version.getVersion(), Response.Status.CREATED); } catch (InvalidSchemaException ex) {
@Override public SchemaIdVersion addSchemaVersion(SchemaMetadata schemaMetadata, SchemaVersion schemaVersion) throws InvalidSchemaException, IncompatibleSchemaException, SchemaNotFoundException, SchemaBranchNotFoundException { try { return schemaRegistry.addSchemaVersion(schemaMetadata, new SchemaVersion(schemaVersion.getSchemaText(), schemaMetadata.getDescription())); } catch (UnsupportedSchemaTypeException e) { throw new RuntimeException(e); } }
@Override public SchemaIdVersion addSchemaVersion(String schemaName, SchemaVersion schemaVersion) throws InvalidSchemaException, IncompatibleSchemaException, SchemaNotFoundException, SchemaBranchNotFoundException { try { return schemaRegistry.addSchemaVersion(schemaName, new SchemaVersion(schemaVersion.getSchemaText(), schemaVersion.getDescription())); } catch (UnsupportedSchemaTypeException e) { throw new RuntimeException(e); } }
SchemaIdVersion schemaVersionInfo = schemaRegistry.addSchemaVersion(schemaMetadataInfo.getSchemaMetadata(), new SchemaVersion(schemaStringFromJson(schema).getSchema(), null));
SchemaIdVersion schemaVersionInfo = schemaRegistry.addSchemaVersion(schemaMetadataInfo.getSchemaMetadata(), new SchemaVersion(schemaStringFromJson(schema).getSchema(), null));