Skip to content

Conversation

@P0lip
Copy link
Contributor

@P0lip P0lip commented Apr 26, 2021

@P0lip P0lip force-pushed the feat/newer-drafts-beta branch 2 times, most recently from f65812a to bd7a4d3 Compare April 26, 2021 21:06
@P0lip P0lip force-pushed the feat/newer-drafts-beta branch from bd7a4d3 to 2eb6acd Compare April 27, 2021 20:31
@P0lip P0lip self-assigned this Apr 27, 2021
@P0lip P0lip added the enhancement New feature or request label Apr 27, 2021
</div>
</div>
</div>
<div>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope the order doesn't matter for you.

];

const exampleValidationNames = ['examples', 'example', 'x-example'];
const exampleValidationNames = ['examples'];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http-spec will try to produce examples at all times now, thus there's no need to handle example and x-example separately.

};

const validationFormatters: Record<string, (value: unknown) => ValidationFormat | null> = {
['const']: createValidationsFormatter('Allowed'),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json-schema-tree turns const into an enum with a single member

@P0lip P0lip marked this pull request as ready for review April 27, 2021 20:35
@P0lip P0lip requested review from a team, domagojk and marcelltoth April 27, 2021 20:35
Copy link
Contributor

@domagojk domagojk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@P0lip P0lip merged commit 30b8a5a into beta Apr 28, 2021
@P0lip P0lip deleted the feat/newer-drafts-beta branch April 28, 2021 10:30
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version 4.0.0-beta.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants