Deploy the API by running gcloud service-management deploy .\build\endpointsOpenApiDocs\openapi.json
Warnings like this are shown:
WARNING: openapi.json: Operation 'put' in path 'XXXXXXXXX': Operation does not require an API key; callers may invoke the method without specifying an associated API-consuming project. To enable API key all the SecurityRequirement Objects (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-requirement-object) inside security definition must reference at least one SecurityDefinition of type : 'apiKey'.
The openapi.json file generated by the plugin contains this:
Steps to reproduce:
apiKeyRequired = AnnotationBoolean.TRUE
to the APIgcloud service-management deploy .\build\endpointsOpenApiDocs\openapi.json
Warnings like this are shown: WARNING: openapi.json: Operation 'put' in path 'XXXXXXXXX': Operation does not require an API key; callers may invoke the method without specifying an associated API-consuming project. To enable API key all the SecurityRequirement Objects (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-requirement-object) inside security definition must reference at least one SecurityDefinition of type : 'apiKey'.
The openapi.json file generated by the plugin contains this:
If I edit the openapi.json file to this the warnings disappear: