+
- {{< editor filename="openapi.yaml" type="fail" language="yaml" details="100+ lines of repetitive validation code|Broken regex patterns copied from ChatGPT|Incomplete or incorrect enumerations|No standards compliance guarantees" >}}openapi: 3.1.0
-paths:
- /users:
- post:
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- email:
- type: string
- pattern: '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
- description: Email address
- country:
- type: string
- pattern: '^[A-Z]{2}$'
- description: ISO 3166-1 alpha-2 country code
- currency:
- type: string
- enum: [ AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT,
- BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD,
- CDF, CHF, CLP, CNY, COP, CRC, CUP, CVE, CZK, DJF, DKK, DOP, DZD,
- EGP, ERN, ETB, EUR, FJD, FKP, FOK, GBP, GEL, GGP, GHS, GIP, GMD,
- GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, IMP, INR, IQD,
- IRR, ISK, JEP, JMD, JOD, JPY, KES, KGS, KHR, KID, KMF, KRW, KWD,
- KYD, KZT, LAK, LBP, LKR, LRD, LSL ]
- description: ISO 4217 currency code
- website:
- type: string
- pattern: '^https'
- description: Website URL
- created_at:
- type: string
- pattern: '^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?$'
- description: ISO 8601 datetime
- language:
- type: string
- pattern: '^[a-z]{2}(-[A-Z]{2})?$'
- description: Language code{{< /editor >}}