Skip to content

[Schema Registry] Settle down on models/method return Type #20307

@yunhaoling

Description

@yunhaoling

languages consensus on:

Methods

  • get_schema
    • return: data, class type
      • Schema -> (content, SchemaProperties), SchemaProperties -> (id, version, …)
  • get_schema_id
    • return just id or all of the properties or new model class

Models

  • Response type (naming)
    • get_schema_id, return a string / SchemaId (class) / SchemaRepsonse / SchemaProperties
    • get_schema, return a Schema
    • any convention in the Python SDKs?
  • SchemaProperties
    • currently we have location_by_id, the swagger spec is Schema-Id-Location, should we align
    • The swagger has Schema-Versions-Location, should we have this?
      -JS has the schema properties: group, name, serialization_type, and content. This info seems like a better mapping in a cache to id? --> don't think this is true. as we discussed, JS SchemaDescription does not map to our SchemaProperties, their SchemaId does.

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.MessagingMessaging crewSchema Registry

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions