Skip to content

[protoc-gen-openapi] Path Variable and Request Parameters can not pick field options from message body properties #436

Open
@ulysses-code

Description

@ulysses-code

Hello,

Currently while generating openapi v3 yaml specification:
For path-variables and request-parameters, there is no handling for field schema properties

If one wants to add more control on path variable, (such as regex pattern), the property(openapi.v3.property option) will be ignored. (just create the plain schema), the problem is it might not meet standard owasp criteria as a openapi v3 document.

code:

fieldSchema = g.reflect.schemaOrReferenceForField(field.Desc)

Should the expected behavior be like how message body handling it? - that besides above, also finding the customized property then merge with current schema

extProperty := proto.GetExtension(field.Desc.Options(), v3.E_Property)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions