Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Properties that are marked as readOnly are not read only #4

Open
ItsReddi opened this issue Oct 23, 2019 · 1 comment
Open

Properties that are marked as readOnly are not read only #4

ItsReddi opened this issue Oct 23, 2019 · 1 comment
Assignees
Labels
generator-feature Functionality missing from the generator
Milestone

Comments

@ItsReddi
Copy link

The generated code does not respect the "readOnly" property.
This is because of the generated model rules. and the requestbody is loaded against the DatabaseModel.

It could be a good idea to create a validator for each endpoint to be able to mix the same property on different endpoints.

@cebe
Copy link
Owner

cebe commented Oct 23, 2019

yeah, validation should use the schema definition instead of yii model rules, this is currently not implemented.

@cebe cebe added the generator-feature Functionality missing from the generator label Oct 23, 2019
@cebe cebe added this to the 2.0 milestone Aug 3, 2020
cebe pushed a commit that referenced this issue Jan 5, 2023
…d-from-base-model-during-code-generation

Fix 104- Remove id from rules() method from base model during code generation
@cebe cebe self-assigned this Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
generator-feature Functionality missing from the generator
Projects
Status: 🔢 Concept Needed
Development

No branches or pull requests

2 participants