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

Generated JSON Schema does not include default value #571

Description

@james-thomson

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

No activity

Activity on this issue will appear here.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions