effect icon indicating copy to clipboard operation
effect copied to clipboard

Expose internals used in JSONSchema so we can write our own interpreters

Open florianbepunkt opened this issue 1 year ago • 0 comments

What is the problem this feature would solve?

We use JSIN schemas in AWS API gateway, which only supports JSON schema draft 04. Coming from effect/schema version 0.52.0 we could easily adapt the JSON schema code to produce a draft 04 compatible schema (while loosing some of the benefits of draft 07 of course). With the current version 0.7.0 this is not possible any more as some methods are marked as internal, like AST.getSurrogateAnnotation, AST.getJSONIdentifier and others.

What is the feature you are proposing to solve the problem?

Expose everything needed to write our own JSON Schema interpreters

What alternatives have you considered?

Adding a draft 04 compatible Schema interpreter to core, but unsure how niche this usecase (AWS API gateway) is.

florianbepunkt avatar Jul 30 '24 10:07 florianbepunkt