Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly/Writeonly properties #10

Open
chriskapp opened this issue May 20, 2024 · 0 comments
Open

Readonly/Writeonly properties #10

chriskapp opened this issue May 20, 2024 · 0 comments

Comments

@chriskapp
Copy link
Member

At a TypeAPI spec it is often the case that we describe a complete type returned by a GET operation. Most times the same type is also used to create a new entity. In most cases the POST operation does not need all properties defined by the type i.e. an id property which is generated by the backend. In this case it would be convenient if we could mark such properties as readonly or in the other case also as writeonly if the property is only needed for write operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant