Skip to content

Commit

Permalink
Serialize schemas feature hamba#400
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovic-pourrat authored May 17, 2024
1 parent 72f62c2 commit 50ce224
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions schema_parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ func ParseBytesWithCache(schema []byte, namespace string, cache *SchemaCache) (S
return derefSchema(s), nil
}

func serializeType(schema Schema, cache *SchemaCache) string {
return schema.Resolve(cache)
}

func parseType(namespace string, v any, seen seenCache, cache *SchemaCache) (Schema, error) {
switch val := v.(type) {
case nil:
Expand Down

0 comments on commit 50ce224

Please sign in to comment.