/jsonschema-recipient-demo

A demo of parsing a JSON schema using jackson ObjectMapper and rendering it recursively

Primary LanguageJavaApache License 2.0Apache-2.0

JSON schema recipient demo

A small demo to show how JSON schema can be parsed by jackson and rendered recursively.

The repo demonstrates to partners how to process the JSON schema dynamic forms format to be returned in v2 of the TransferWise API.

Expected output:

-------allOf------
    string: currency
    array: [
        string: firstName
        string: lastName
    ]
  -------oneOf------
      string: fullName
      string: sortCode
      string: accountNumber
    -------or------
      string: iban
  -------end oneOf--
    string: streetAddress
-------end allOf--

The indentation demonstartes the nesting of the JSON schema