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

Null is supposed to be a scalar value #557

Open
fractaloop opened this issue Sep 20, 2018 · 0 comments
Open

Null is supposed to be a scalar value #557

fractaloop opened this issue Sep 20, 2018 · 0 comments

Comments

@fractaloop
Copy link

fractaloop commented Sep 20, 2018

When loading a named example, null is not considered a scalar value, making it indistinguishable from {}

null.raml

#%RAML 1.0 NamedExample

null

test.java

RamlModelBuilder().buildApi("null.raml").getExampleSpec().structuredValue().isScalar()
// false, but should be true

Version tested: 1.0.26

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

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