-
-
Notifications
You must be signed in to change notification settings - Fork 59
Closed
Description
🐛 Bug Report
After the Schema extend other Schema, some of the api will be missing.
To Reproduce
Steps to reproduce the behavior:
const Base = S.object()
.prop('foo', S.string())
const Extend = S.object()
.prop('bar', S.string())
.extend(Base)
.required(['foo', 'bar']) // missing endpoint here
Expected behavior
const Base = S.object()
.prop('foo', S.string())
const Extend = S.object()
.prop('bar', S.string())
.extend(Base)
.required(['foo', 'bar']) // without error
Your Environment
- node version: 14
- fastify version: >=2.0.0
- os: Linux
- any other relevant information
Metadata
Metadata
Assignees
Labels
No labels