annotations.proto 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Copyright 2022 Google LLC. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package openapi.v3;
  16. import "google/protobuf/descriptor.proto";
  17. import "openapiv3/OpenAPIv3.proto";
  18. // The Go package name.
  19. option go_package = "./openapiv3;openapi_v3";
  20. // This option lets the proto compiler generate Java code inside the package
  21. // name (see below) instead of inside an outer class. It creates a simpler
  22. // developer experience by reducing one-level of name nesting and be
  23. // consistent with most programming languages that don't support outer classes.
  24. option java_multiple_files = true;
  25. // The Java outer classname should be the filename in UpperCamelCase. This
  26. // class is only used to hold proto descriptor, so developers don't need to
  27. // work with it directly.
  28. option java_outer_classname = "AnnotationsProto";
  29. // The Java package name must be proto package name with proper prefix.
  30. option java_package = "org.openapi_v3";
  31. // A reasonable prefix for the Objective-C symbols generated from the package.
  32. // It should at a minimum be 3 characters long, all uppercase, and convention
  33. // is to use an abbreviation of the package name. Something short, but
  34. // hopefully unique enough to not conflict with things that may come along in
  35. // the future. 'GPB' is reserved for the protocol buffer implementation itself.
  36. option objc_class_prefix = "OAS";
  37. extend google.protobuf.FileOptions {
  38. Document document = 1143;
  39. }
  40. extend google.protobuf.MethodOptions {
  41. Operation operation = 1143;
  42. }
  43. extend google.protobuf.MessageOptions {
  44. Schema schema = 1143;
  45. }
  46. extend google.protobuf.FieldOptions {
  47. Schema property = 1143;
  48. }