google / google/jsonschema-go

proposal: Schema.SubSchema

Open
#10 1 comment 2 reactions 0 assignees View on GitHub
P3 Small
Dominant language
Go
Stars
478
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Add the following method:
```
// SubSchema returns the sub-schema of root selected by the given [JSON Pointer] expression.
// It returns nil if the expression does not refer to a schema.
//
// [JSON Pointer]: https://datatracker.ietf.org/doc/html/rfc6901
func (root *Schema) SubSchema(jp string) *Schema
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.