Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Generate JSON schema from PropTypes #184

Closed
francisypl opened this issue May 24, 2018 · 3 comments
Closed

Generate JSON schema from PropTypes #184

francisypl opened this issue May 24, 2018 · 3 comments

Comments

@francisypl
Copy link

Is this a feature? http://json-schema.org/
or another schema language

@ljharb
Copy link
Contributor

ljharb commented May 24, 2018

PropTypes are much much more powerful and expressive than json schema is capable of expressing; you could easily make a jsonschema-based validator propType yourself, tho.

@francisypl
Copy link
Author

Yea I'm probably going doing that. JSON based schema definitely won't have feature parity with proptypes but I have a use case where i need to express Component proptypes in json format.

@ljharb
Copy link
Contributor

ljharb commented Feb 21, 2019

This is also related to #60.

Closing as answered.

@ljharb ljharb closed this as completed Feb 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants