Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Generated JSON Schema does not include default value #571

Open
james-thomson opened this issue Nov 23, 2018 · 0 comments
Open

Generated JSON Schema does not include default value #571

james-thomson opened this issue Nov 23, 2018 · 0 comments

Comments

@james-thomson
Copy link

james-thomson commented Nov 23, 2018

Given the following raml

#%RAML 1.0
title: no default
types:
  fooType:
    default: 'foo'

calling toJsonSchema() on the TypeDeclaration for fooType produces the json schema

{
  "type": "string",
  "definitions": {},
  "$schema": "http://json-schema.org/draft-04/schema#"
}

It would be good if the default value was included in the generated json schema.

Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-45

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

1 participant