Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 758 Bytes

lro-location-header.md

File metadata and controls

49 lines (32 loc) · 758 Bytes

LroLocationHeader

Category

ARM Error

Applies to

ARM OpenAPI(swagger) specs

Related ARM Guideline Code

  • RPC-Async-V1-07

Output Message

A 202 response should include an Location response header.

Description

Location header must be supported for all async operations that return 202.

CreatedAt

July 07, 2022

LastModifiedAt

July 07, 2022

How to fix the violation

Adding the location header schema to the 202 response header schema, like

'/test1': {
        post: {
          responses: {
            202: {
              description: 'Accepted',
              headers: {
                'Location': {
                  type: 'string',
                },
              },
            },
          },
        },