Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
27pchrisl committed Mar 23, 2024
1 parent 0436f25 commit 7a8ffac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PathSegment/OpenAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,10 @@ public function emitJson(Transaction $transaction): void

foreach (Lodata::getComplexTypes() as $complexType) {
$schemas->{$complexType->getIdentifier()} = $complexType->getOpenAPISchema();
$schemas->{$complexType->getIdentifier().'-create'} = $complexType->getOpenAPICreateSchema();
$schemas->{$complexType->getIdentifier().'-update'} = $complexType->getOpenAPIUpdateSchema();
if (!config('lodata.readonly')) {
$schemas->{$complexType->getIdentifier().'-create'} = $complexType->getOpenAPICreateSchema();
$schemas->{$complexType->getIdentifier().'-update'} = $complexType->getOpenAPIUpdateSchema();
}
}

$schemas->{Identifier::from(ComplexType::identifier)} = ['type' => Constants::oapiObject];
Expand Down

0 comments on commit 7a8ffac

Please sign in to comment.