You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verify the 'Note:' placement and spacing is uniform across all updated countryCode descriptions, including those with additional 'Condition:' paragraphs, to avoid rendering inconsistencies in generated docs.
type: stringpattern: ^[A-Z]{2}$minLength: 2maxLength: 2description: | The 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en) **Condition:** Mandatory to provide in case `UN Location Code` is not provided **Note:** In case the `countryCode` is unknown it is possible to use the code `ZZ`.example: NLUNLocationCode:
type: stringpattern: ^[A-Z]{2}[A-Z2-9]{3}$minLength: 5maxLength: 5description: | The UN Location code specifying where the place is located. The pattern used must be - 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en) - 3 characters to code a location within that country. Letters A-Z and numbers from 2-9 can be used More info can be found here: [UN/LOCODE](https://unece.org/trade/cefact/UNLOCODE-Download)example: NLAMSPlaceOfFinalDelivery:
type: objecttitle: Place of Final Deliverydescription: | An object to capture `Place of Final Delivery` location specified as: Identification of the seaport, freight terminal or other place at which the goods are handed over from the `Ocean Transport Intermediary` (OTI) issuing the `House Bill of Lading` to the `Consignee`. **Condition:** Mandatory if different from `Place of Delivery` at the `Master Transport Document` level. **Condition:** The location can be specified either using `UN Location Code` and/or (`Location Name` together with `Country Code`), all three properties can be specified.example:
locationName: HamburgUNLocationCode: DEHAMproperties:
locationName:
type: stringpattern: ^\S(?:.*\S)?$maxLength: 35description: | The name of the location. **Condition:** Mandatory to provide in case `UN Location Code` is not providedexample: Port of AmsterdamcountryCode:
type: stringpattern: ^[A-Z]{2}$minLength: 2maxLength: 2description: | The 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en) **Condition:** Mandatory to provide in case `UN Location Code` is not provided **Note:** In case the `countryCode` is unknown it is possible to use the code `ZZ`.example: NLUNLocationCode:
type: stringpattern: ^[A-Z]{2}[A-Z2-9]{3}$
Ensure the pipe-style multiline description renders as intended with the added blank line before the 'Note:' so that it does not introduce unintended extra spacing in published OpenAPI docs.
example: North HollandcountryCode:
type: stringpattern: ^[A-Z]{2}$minLength: 2maxLength: 2description: | The 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en) **Note:** In case the `countryCode` is unknown it is possible to use the code `ZZ`.example: NLrequired:
- street
- city
- countryCode################ City Location###############City:
type: objecttitle: Citydescription: | An object for storing city, state/region and country related informationproperties:
city:
type: stringpattern: ^\S(?:.*\S)?$maxLength: 35description: | The name of the city.example: AmsterdamstateRegion:
type: stringmaxLength: 65description: | The name of the state/region.example: North HollandcountryCode:
type: stringpattern: ^[A-Z]{2}$minLength: 2maxLength: 2description: | The 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en) **Note:** In case the `countryCode` is unknown it is possible to use the code `ZZ`.example: NLrequired:
- city
- countryCode
The schemas still enforce pattern ^[A-Z]{2}$ without explicitly stating ZZ is an allowed non-ISO code, which may confuse implementers and validators relying strictly on ISO 3166-1 alpha-2. Consider explicitly documenting that ZZ is an intentional exception to ISO 3166 (per ISO 3166-1 user-assigned codes) and, if applicable, adjusting enum/validation guidance so tooling and validation pipelines consistently accept ZZ.
description: | The 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en)**Note:** In case the `countryCode` is unknown it is possible to use the code `ZZ`.
description: | The 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en)**Note:** In case the `countryCode` is unknown it is possible to use the code `ZZ`.
Solution Walkthrough:
Before:
description: | The 2 characters for the country code using [ISO 3166-1 alpha-2](...) **Note:** In case the `countryCode` is unknown it is possible to use the code `ZZ`.
After:
description: | The 2 characters for the country code using [ISO 3166-1 alpha-2](...). The code `ZZ` can be used for unknown countries, as it is a user-assigned code element under the ISO 3166-1 standard.
Suggestion importance[1-10]: 7
__
Why: This is a valid and impactful suggestion that improves the clarity and correctness of the API documentation, preventing potential confusion for implementers, which is crucial for a specification file.
Medium
General
Standardize note formatting
Ensure consistent punctuation and formatting across all inserted notes to avoid markdown rendering issues and accidental extra blank lines in generated docs. Remove the trailing blank line before the note and use plain text "Note:" consistently to match surrounding style.
description: |
- The 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en)-- **Note:** In case the `countryCode` is unknown it is possible to use the code `ZZ`.+ The 2 characters for the country code using ISO 3166-1 alpha-2.+ Note: In case the `countryCode` is unknown it is possible to use the code `ZZ`.
example: BR
Apply / Chat
Suggestion importance[1-10]: 3
__
Why: The suggestion offers a minor improvement by standardizing the formatting of the added note for better consistency and readability, although the current formatting is also valid.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SD-2232: Make sure to include
ZZascountryCodein eBL, Issuance, Surrender (if needed) and PINT