public interface TypeDeclaration extends Annotable
| Modifier and Type | Method and Description |
|---|---|
List<AnnotationTarget> |
allowedTargets()
Restrictions on where annotations of this type can be applied.
|
String |
defaultValue()
Provides default value for a property
|
MarkdownString |
description()
A longer, human-friendly description of the type
|
String |
displayName()
The displayName attribute specifies the type display name.
|
ExampleSpec |
example()
An example of this type instance represented as string or yaml map/sequence.
|
List<ExampleSpec> |
examples()
An example of this type instance represented as string.
|
TypeInstance |
fixedFacets()
Returns facets fixed by the type.
|
Boolean |
isAnnotation()
Whether the type represents annotation
|
String |
name()
name of the parameter
|
Boolean |
required()
Sets if property is optional or not
|
List<String> |
schema()
Alias for the equivalent "type" property, for compatibility with RAML 0.8.
|
String |
schemaContent()
Returns schema/type content for the cases when schema is inlined
|
List<String> |
type()
A base type which the current type extends, or more generally a type expression.
|
List<ValidationResult> |
validate(String payload)
Validates payload against the type/schema defined
|
annotationsString name()
String displayName()
List<String> schema()
List<String> type()
String defaultValue()
ExampleSpec example()
List<ExampleSpec> examples()
Boolean required()
MarkdownString description()
List<AnnotationTarget> allowedTargets()
Boolean isAnnotation()
TypeInstance fixedFacets()
List<ValidationResult> validate(String payload)
payload - the payload to be validatedString schemaContent()
Copyright © 2016. All rights reserved.