Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raz-varren/jaxsd

JSON Schema to XSD converter
https://github.com/raz-varren/jaxsd

json-schema php xsd xsd-converter

Last synced: about 1 month ago
JSON representation

JSON Schema to XSD converter

Awesome Lists containing this project

README

        

JAXSD
=====

JSON Schema to XSD converter

I had been making a lot of APIs and validating my user input with JSON schema. It was all going pretty well until I had a client that could only send me data in XML format. I really didn't want to write out a gross XSD for each one of my nice clean JSON schema files, and after spending who knows how many hours trying to find a script to do it for me, I came to the realization that such a script did not exist. So, I decided to make my own. I realize that there is a lot that gets lost in the translation from JSON to XSD, but if all you need is basic JSON to XSD conversion, this script will do the trick. It has certainly saved me a lot of time.

### Example:

```php