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

[Question] How to specify a facet for a nullable type? #757

Open
GauthierPLM opened this issue Mar 3, 2021 · 0 comments
Open

[Question] How to specify a facet for a nullable type? #757

GauthierPLM opened this issue Mar 3, 2021 · 0 comments

Comments

@GauthierPLM
Copy link

I have a type for which I would like to specify that maxLength is 165. However, the type being a nullable string (string | nil), specifying the facet like I did in the example is not authorised (according to Anypoint' Design Center validation).

What is the right way to specify the maxLength?

#%RAML 1.0 DataType
type: object
properties:
  url:
    type: string | nil
    maxLength: 165
    required: false
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants