Skip to content

use x-tension value in annotation mapping #190

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

Open
hauner opened this issue Oct 6, 2024 · 0 comments
Open

use x-tension value in annotation mapping #190

hauner opened this issue Oct 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hauner
Copy link
Member

hauner commented Oct 6, 2024

Having an x-tension property with value

    Foo:
      type: object
      properties:
        bar:
          type: integer
          x-foobar: raboof

it would probably be nice if I could pass the value to the annotation.

how wold the mapping look like?

  extensions:
    # the mapping expects the source type to be a `string`. It would need 
    # - an identifier to represent the x-tension value and
    # - an identifier as placeholder for the annotation parameter

    # placeholder could look like this
    x-foobar: ?? @ io.openapiprocessor.annotation.Foobar(value = {value})
 
    # value source type could be this?
    x-foobar: {value} @ io.openapiprocessor.annotation.Foobar(value = {value})
@hauner hauner added the enhancement New feature or request label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant