Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
25
repos/effect/.changeset/compact-json-schema-enum.md
Normal file
25
repos/effect/.changeset/compact-json-schema-enum.md
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
"effect": patch
|
||||
---
|
||||
|
||||
Schema: collapse same-type literal branches in JSON Schema output into a single `enum` array, closes #1868.
|
||||
|
||||
Before:
|
||||
|
||||
```json
|
||||
{
|
||||
"anyOf": [
|
||||
{ "type": "string", "enum": ["A"] },
|
||||
{ "type": "string", "enum": ["B"] }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
After:
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "string",
|
||||
"enum": ["A", "B"]
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user