haanhvu commented on PR #3217:
URL: https://github.com/apache/camel-k/pull/3217#issuecomment-1101268945

   > I think it could be okey, but, as you said, we must fit this change within 
the rest of the source code. Also, I think we have a compatibility problem as 
we're trying to change the API spec within the same version. I'd defer this 
work when we move to `v1` version. Alternatively, we must make this change 
backward compatible, and, maintaining both new and old schema can be an hassle.
   
   @squakez I understand.
   
   I think we can think of changing the schema later.
   
   For now, I think we can do a quick fix by providing an enum so that users 
can only insert out/in/error tag. Something like:
   ```
                  types: 
                    additionalProperties: 
                      properties: 
                        mediaType: 
                          ... 
                        schema:
                          ...
                      type: object
                      enum:
                         - in
                         - out
                         - error
   ```
   
   WDYT?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to