Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you look at OpenAPI specification you will see there there are some information on data types that can not be expressed in UML. This information are fields are

When working with OpenAPI you will recognize that it has a very simple but cool feature to improve the quality of your documentation: “example values”. OpenAPI allow to define example values for for attributes of types and parameters. To make use of this feature JEAF Generator has another stereotype called «OpenAPIExample» which can be used to provide example values.

...

Stereotype

...

OpenAPIExample

...

Applicable Elements

...

readOnly, writeOnly and nullable. The be able to add this information also to the UML model you can apply the stereotype «OpenAPIProperty» on properties in the UML model.

...

Stereotype

OpenAPIProperty

Applicable Elements

Property

Tagged Values

Name

Type

Description

 nullable

boolean

Tagged value defines if the property is nullable or not. Default value

String

Example value that should be added to the OpenAPI specificationis true.

accessType

AccessType

Access type defines if the attribute is READ_ONLY, WRITE_ONLY or READ_WRITE. Default value is READ_WRITE.

For further information please refer to:

...