Message SomeProto {
string field_1 = 1;
AnotherProto field_2 = 2; // exclude this
}
// this proto should not be included in the OpenAPI spec
Message AnotherProto {
SomeMoreDepProto field = 1;
...
}
Currently, the OpenAPI spec defines all of these protos under the components->schemas
Is it possible to exclude certain fields defined in a protobuf and its corresponding graph from the OpenAPI spec generated by https://github.com/google/gnostic/tree/master/apps/protoc-gen-openapi ?
Say the proto is
Currently, the OpenAPI spec defines all of these protos under the components->schemas
AnotherProto
andSomeMoreDepProto
are internal protos that I cannot expose.I need the OpenAPI spec to thus be