lodata
lodata copied to clipboard
Update behaviour for `immutable` and `computed` properties
OpenAPI Documentation
- Display
computed
properties in the Create-OpenApi, if it is also annotated asComputedDefaultValue
- Hide
immutable
properties in the Update-OpenApi - Include
GeneratedProperties
(in addition toDeclared
) when generating the Entity OpenAPI documentation
Property Filtering
- Strips
computed
fields from create operations, unless the property is also annotated asComputedDefaultValue
- Strips
computed
fields from update operations
Annotations
-
Enum
can be annotated asnullable
andimmutable
Changes
- Default drivers key properties (with a default value) are annotated as
Computed
- instead ofComputedDefault
-
Guid
properties are properly validated (thanks @sean-james-eco)
Bugfixes
- Initialise the
$cookie
property of a request when convertingIlluminate\Request
. Fixes"Request::$cookies must not be accessed before initialization"
when Telescope and APP_DEBUG are enabled. -
EloquentEntitySet::create
complies withattribute.source
for navigation source (thanks @sean-james-eco)