File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/plugins/openapi/src Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -857,10 +857,8 @@ export class RESTfulOpenAPIGenerator extends OpenAPIGeneratorBase {
857857
858858 private generateModelEntity ( model : DataModel , mode : 'read' | 'create' | 'update' ) : OAPI . SchemaObject {
859859 const idFields = model . fields . filter ( ( f ) => isIdField ( f ) ) ;
860- // For compound ids each component is also exposed as a separate fields for read operations,
861- // but not required for write operations
862- const fields =
863- idFields . length > 1 && mode !== 'update' ? model . fields : model . fields . filter ( ( f ) => ! isIdField ( f ) ) ;
860+ // For compound ids each component is also exposed as a separate fields.
861+ const fields = idFields . length > 1 ? model . fields : model . fields . filter ( ( f ) => ! isIdField ( f ) ) ;
864862
865863 const attributes : Record < string , OAPI . SchemaObject > = { } ;
866864 const relationships : Record < string , OAPI . ReferenceObject | OAPI . SchemaObject > = { } ;
You can’t perform that action at this time.
0 commit comments