You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a Protobuf schema with references, types from the referred schemas can be used even without actually importing them in the schema itself.
Create schema A by sending a POST request over subjects/mySubjectA/versions with the following body:
Creating schema succeeds without import statement.
Creating fails, if you remove the references.
This would imply that import statement is ignored and only the references are read.
What did you expect to happen?
Creating schema would fail if types are used from the referred schema without actually importing.
The following test should throw an exception but doesn't:
We are apparently ignoring both the name and the subject and we are relying on the fact that the reference map is in sync with the import statements
What else do we need to know?
Tested only with Protobuf schemas, did not try with other schema types.
The text was updated successfully, but these errors were encountered:
roope-kar
changed the title
When referring to other Protobuf schemas in schema - only references are required and import statements are ignored.
When referring to other Protobuf schemas from a schema - only references are required and import statements are ignored.
Oct 17, 2023
roope-kar
changed the title
When referring to other Protobuf schemas from a schema - only references are required and import statements are ignored.
When referring to other Protobuf schemas from a schema, only references are required and import statements are ignored.
Oct 17, 2023
What happened?
When creating a Protobuf schema with references, types from the referred schemas can be used even without actually importing them in the schema itself.
subjects/mySubjectA/versions
with the following body:subjects/mySubjectB/versions
with the following body:Creating schema succeeds without import statement.
Creating fails, if you remove the references.
This would imply that import statement is ignored and only the references are read.
What did you expect to happen?
Creating schema would fail if types are used from the referred schema without actually importing.
The following test should throw an exception but doesn't:
We are apparently ignoring both the name and the subject and we are relying on the fact that the reference map is in sync with the import statements
What else do we need to know?
Tested only with Protobuf schemas, did not try with other schema types.
The text was updated successfully, but these errors were encountered: