cancel
Showing results for 
Search instead for 
Did you mean: 

Are readonly and writeonly implemented for Java code generation?

SOLVED
Occasional Contributor

Are readonly and writeonly implemented for Java code generation?

Last year, we added readOnly in api.json for a service, invoked the CLI via io.swagger.codegen.SwaggerCodegen, and it didn't work.

We wound up having to fork the code and make changes to OpenAPIDeserializer, ModelDeserializer, CodegenProperty, and DefaultCodegen to get it to work, which seemed weird.

We'd love to be able to unfork that code.

1 ACCEPTED SOLUTION

Accepted Solutions
Occasional Contributor

Re: Are readonly and writeonly implemented for Java code generation?

It's natively supported. We were using an old version. It turns out we don't need to fork anything.

View solution in original post

1 REPLY 1
Occasional Contributor

Re: Are readonly and writeonly implemented for Java code generation?

It's natively supported. We were using an old version. It turns out we don't need to fork anything.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements