@Override
    public Set<String> getProtocolRequestHeaders(Context<RestJson1Trait> context, OperationShape operationShape) {
        // x-amz-api-version if it is an endpoint operation
        Set<String> headers = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
        headers.addAll(super.getProtocolRequestHeaders(context, operationShape));
        headers.addAll(AWS_REQUEST_HEADERS);
        if (operationShape.hasTrait(ClientDiscoveredEndpointTrait.ID)) {
            headers.add("X-Amz-Api-Version");
        }
        return headers;
    }
Converts the {@code aws.protocols#restJson1} protocol to OpenAPI.
smithy-openapi/src/main/java/software/amazon/smithy/openapi/fromsmithy/protocols/AwsRestJson1Protocol.java