@addresszen/openapi 2.0.3 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
- version: 2.1.1
3
+ version: 3.0.0
4
4
  license:
5
5
  name: AGPLv3
6
6
  url: https://opensource.org/licenses/AGPL-3.0
@@ -71,7 +71,7 @@ info:
71
71
 
72
72
  ```
73
73
 
74
- Authorization: IDEALPOSTCODES api_key="iddqd" [other_key="foo"]
74
+ Authorization: api_key="iddqd" [other_key="foo"]
75
75
 
76
76
  ```
77
77
 
@@ -379,19 +379,35 @@ tags:
379
379
 
380
380
  Useful if you need to configure your integration remotely rather than
381
381
  editing code in situ.
382
+ - name: suggestion
383
+ x-displayName: Address Suggestion
384
+ description: >
385
+ Address Suggestions are simple, human readable representations of an
386
+ address. This format is sufficient tfor a user to determine an address
387
+ match in an address autocomplete interface. A second request must be made
388
+ to the API to gather fully validated address.
389
+
390
+
391
+ See our Address Search APIs for more information on address
392
+ autocompletion.
393
+
394
+
395
+ <SchemaDefinition schemaRef="#/components/schemas/AddressSuggestion" />
382
396
  - name: usps_address
383
397
  x-displayName: US Address
384
398
  description: |
399
+ Standard US Address format as reported by USPS.
400
+
385
401
  <SchemaDefinition schemaRef="#/components/schemas/UspsAddress" />
386
402
  - name: uk_address
387
403
  x-displayName: UK Address
388
- description: |
389
- <SchemaDefinition schemaRef="#/components/schemas/PafAddress" />
390
- - name: suggestion
391
- x-displayName: Global Address Suggestion
392
404
  description: >
393
- <SchemaDefinition schemaRef="#/components/schemas/GlobalAddressSuggestion"
394
- />
405
+ Standard UK Address format as reported by Royal Mail's Postcode Address
406
+ File (PAF). PAF is the most complete and up-to-date address database in
407
+ the UK.
408
+
409
+
410
+ <SchemaDefinition schemaRef="#/components/schemas/PafAddress" />
395
411
  x-tagGroups:
396
412
  - name: Address Search
397
413
  tags:
@@ -476,7 +492,6 @@ paths:
476
492
  - name: api_key
477
493
  in: query
478
494
  style: form
479
- required: true
480
495
  explode: false
481
496
  schema:
482
497
  $ref: '#/components/schemas/ApiKeyParam'
@@ -573,7 +588,6 @@ paths:
573
588
  type: string
574
589
  - name: api_key
575
590
  in: query
576
- required: true
577
591
  style: form
578
592
  explode: false
579
593
  schema:
@@ -660,7 +674,6 @@ paths:
660
674
  schema:
661
675
  type: string
662
676
  - name: api_key
663
- required: true
664
677
  in: query
665
678
  style: form
666
679
  explode: false
@@ -763,7 +776,6 @@ paths:
763
776
  - name: user_token
764
777
  in: query
765
778
  style: form
766
- required: true
767
779
  explode: false
768
780
  schema:
769
781
  $ref: '#/components/schemas/UserTokenParam'
@@ -975,28 +987,27 @@ paths:
975
987
  summary: Find Address
976
988
  description: >
977
989
  The address autocomplete API returns a list of address suggestions that
978
- match the query ordered by relevance score.
990
+ match the query ordered by relevance.
979
991
 
980
992
 
981
993
  This API can be used to power realtime address finders, also known as
982
994
  address autofill or address autocomplete.
983
995
 
984
996
 
985
- If you wish to quickly add address autocompletion to your address forms,
986
- see [Address Finder](/address-finder) and [associated
987
- demos](/address-finder-demo).
997
+ Consider using our Address Autocomplete JavaScript libraries to add
998
+ address lookup to a form in moments.
988
999
 
989
1000
 
990
1001
  ## Implementing Address Autocomplete
991
1002
 
992
1003
 
993
- Retrieving addresses using Address Autocomplete is a 2 step process.
1004
+ Rapid address autocompletion using our Address Autocomplete API is a 2
1005
+ step process.
994
1006
 
995
1007
 
996
1008
  1. Retrieve partial address suggestions via `/autocomplete/addresses`
997
1009
 
998
- 2. Retrieve the entire address by following the URL provided by the
999
- suggestion
1010
+ 2. Retrieve the entire address with the ID provided in the suggestion
1000
1011
 
1001
1012
 
1002
1013
  Step 2 will decrement your lookup balance.
@@ -1009,11 +1020,8 @@ paths:
1009
1020
 
1010
1021
 
1011
1022
  You can strictly narrow your result by adding filters to your
1012
- querystring which correspond with an address attribute.
1013
-
1014
-
1015
- For instance, you can restrict to postcode `SW1A 2AA` by appending
1016
- `postcode=sw1a2aa`.
1023
+ querystring. For instance, you can restrict to postcode `SW1A 2AA` by
1024
+ appending `postcode=sw1a2aa`.
1017
1025
 
1018
1026
 
1019
1027
  If a filter term is invalid, e.g. `postcode=SW1A2AAA`, then an empty
@@ -1022,17 +1030,17 @@ paths:
1022
1030
 
1023
1031
  You can also scope using multiple terms for the same filter with a comma
1024
1032
  separated list of terms. E.g. Restrict results to E1, E2 and E3 outward
1025
- codes: `postcode_outward=e1,e2,e3`. Multiple terms are
1026
- <code>OR</code>'ed, i.e. the matching result sets are combined.
1033
+ codes: `postcode_outward=e1,e2,e3`. Multiple terms are `OR`'ed, i.e. the
1034
+ matching result sets are combined.
1027
1035
 
1028
1036
 
1029
1037
  All filters can accept multiple terms unless stated otherwise below.
1030
1038
 
1031
1039
 
1032
- Multiple filters can also be combined. E.g. Restrict results to small
1033
- user organisations in the N postcode area:
1040
+ Filters can also be combined. E.g. Restrict results to small user
1041
+ organisations in the N postcode area:
1034
1042
  `su_organisation_indicator=Y&postcode_area=n`. Multiple filters are
1035
- <code>AND</code>'ed, i.e. each additional filter narrows the result set.
1043
+ `AND`'ed, i.e. each additional filter narrows the result set.
1036
1044
 
1037
1045
 
1038
1046
  A maximum of **10** terms are allowed across all filters.
@@ -1041,21 +1049,20 @@ paths:
1041
1049
  ## Biases
1042
1050
 
1043
1051
 
1044
- You can boost certain addresses results that correspond with a certain
1045
- address attribute. All bias searches are prefixed with `bias_`.
1052
+ You can boost certain addresses results that match specific address
1053
+ criteria. All bias searches are prefixed with `bias_`.
1046
1054
 
1047
1055
 
1048
- Biased searches, unlike filtered searches, also allow unmatched
1049
- addresses to appear. These will rank lower.
1056
+ Biasing (unlike filtering) also allow unmatched addresses to appear with
1057
+ lower precedence.
1050
1058
 
1051
1059
 
1052
1060
  For instance, can boost addresses with postcode areas `SW` and `SE` by
1053
1061
  appending `bias_postcode_area=SW,SE`.
1054
1062
 
1055
1063
 
1056
- No bias effect applies to bias terms that are invalid.
1057
-
1058
- e.g. `bias_postcode=SW1A2AAA`
1064
+ No bias effect applies to bias terms that are invalid. e.g.
1065
+ `bias_postcode=SW1A2AAA`
1059
1066
 
1060
1067
 
1061
1068
  You may scope using multiple terms for the same bias with a comma
@@ -1119,7 +1126,6 @@ paths:
1119
1126
  - name: api_key
1120
1127
  in: query
1121
1128
  style: form
1122
- required: true
1123
1129
  explode: false
1124
1130
  schema:
1125
1131
  $ref: '#/components/schemas/ApiKeyParam'
@@ -1323,7 +1329,6 @@ paths:
1323
1329
  type: string
1324
1330
  - name: api_key
1325
1331
  in: query
1326
- required: true
1327
1332
  style: form
1328
1333
  explode: false
1329
1334
  schema:
@@ -1378,7 +1383,6 @@ paths:
1378
1383
  type: string
1379
1384
  - name: api_key
1380
1385
  in: query
1381
- required: true
1382
1386
  style: form
1383
1387
  explode: false
1384
1388
  schema:
@@ -1434,6 +1438,14 @@ paths:
1434
1438
  for speed and address completion.
1435
1439
 
1436
1440
 
1441
+ ## Reverse Geocoding
1442
+
1443
+
1444
+ Return a list of addresses around a point using the lon= and lat=
1445
+ querystring arguments. Addresses will be sorted in order of distance to
1446
+ the point. The search radius is 100m.
1447
+
1448
+
1437
1449
  ## Filters
1438
1450
 
1439
1451
 
@@ -1568,6 +1580,18 @@ paths:
1568
1580
  explode: false
1569
1581
  schema:
1570
1582
  $ref: '#/components/schemas/FilterParam'
1583
+ - name: lon
1584
+ in: query
1585
+ style: form
1586
+ explode: false
1587
+ schema:
1588
+ $ref: '#/components/schemas/AddressLongitudeParam'
1589
+ - name: lat
1590
+ in: query
1591
+ style: form
1592
+ explode: false
1593
+ schema:
1594
+ $ref: '#/components/schemas/AddressLatitudeParam'
1571
1595
  - name: postcode_outward
1572
1596
  in: query
1573
1597
  style: form
@@ -1721,7 +1745,6 @@ paths:
1721
1745
  format: int32
1722
1746
  - name: user_token
1723
1747
  in: query
1724
- required: true
1725
1748
  style: form
1726
1749
  explode: false
1727
1750
  schema:
@@ -1765,7 +1788,6 @@ paths:
1765
1788
  $ref: '#/components/schemas/ApiKeyParam'
1766
1789
  - name: user_token
1767
1790
  in: query
1768
- required: true
1769
1791
  style: form
1770
1792
  explode: false
1771
1793
  schema:
@@ -1807,7 +1829,6 @@ paths:
1807
1829
  $ref: '#/components/schemas/LicenseeParam'
1808
1830
  - name: user_token
1809
1831
  in: query
1810
- required: true
1811
1832
  style: form
1812
1833
  explode: false
1813
1834
  schema:
@@ -1845,7 +1866,6 @@ paths:
1845
1866
  $ref: '#/components/schemas/LicenseeParam'
1846
1867
  - name: user_token
1847
1868
  in: query
1848
- required: true
1849
1869
  style: form
1850
1870
  explode: false
1851
1871
  schema:
@@ -1905,7 +1925,6 @@ paths:
1905
1925
  $ref: '#/components/schemas/LicenseeParam'
1906
1926
  - name: user_token
1907
1927
  in: query
1908
- required: true
1909
1928
  style: form
1910
1929
  explode: false
1911
1930
  schema:
@@ -1940,7 +1959,6 @@ paths:
1940
1959
  $ref: '#/components/schemas/ApiKeyParam'
1941
1960
  - name: user_token
1942
1961
  in: query
1943
- required: true
1944
1962
  style: form
1945
1963
  explode: false
1946
1964
  schema:
@@ -1980,7 +1998,6 @@ paths:
1980
1998
  $ref: '#/components/schemas/ApiKeyParam'
1981
1999
  - name: user_token
1982
2000
  in: query
1983
- required: true
1984
2001
  style: form
1985
2002
  explode: false
1986
2003
  schema:
@@ -2075,7 +2092,6 @@ paths:
2075
2092
  $ref: '#/components/schemas/ConfigParam'
2076
2093
  - name: user_token
2077
2094
  in: query
2078
- required: true
2079
2095
  style: form
2080
2096
  explode: false
2081
2097
  schema:
@@ -2153,7 +2169,6 @@ paths:
2153
2169
  $ref: '#/components/schemas/ConfigParam'
2154
2170
  - name: user_token
2155
2171
  in: query
2156
- required: true
2157
2172
  style: form
2158
2173
  explode: false
2159
2174
  schema:
@@ -2376,8 +2391,6 @@ components:
2376
2391
  oneOf:
2377
2392
  - type: string
2378
2393
  description: If premise is not multiple occupancy, this will be an empty string
2379
- enum:
2380
- - ''
2381
2394
  - type: number
2382
2395
  description: If premise is multiple occupancy, this will be an integer
2383
2396
  example: 983729
@@ -2524,8 +2537,6 @@ components:
2524
2537
  oneOf:
2525
2538
  - type: string
2526
2539
  description: Empty string `""` if not available
2527
- enum:
2528
- - ''
2529
2540
  - type: number
2530
2541
  description: Represents longitude
2531
2542
  example: 0.002823
@@ -2541,8 +2552,6 @@ components:
2541
2552
  oneOf:
2542
2553
  - type: string
2543
2554
  description: Empty string `""` if not available
2544
- enum:
2545
- - ''
2546
2555
  - type: number
2547
2556
  description: Represents latitude
2548
2557
  example: 52.938278
@@ -2560,8 +2569,6 @@ components:
2560
2569
  oneOf:
2561
2570
  - type: string
2562
2571
  description: Empty string `""` if not available
2563
- enum:
2564
- - ''
2565
2572
  - type: number
2566
2573
  description: Metres offset east from origin
2567
2574
  example: 9382
@@ -2579,8 +2586,6 @@ components:
2579
2586
  oneOf:
2580
2587
  - type: string
2581
2588
  description: Empty string `""` if not available
2582
- enum:
2583
- - ''
2584
2589
  - type: number
2585
2590
  description: Metres offset north from origin
2586
2591
  example: 123932
@@ -2615,6 +2620,7 @@ components:
2615
2620
  enum:
2616
2621
  - paf
2617
2622
  - pafw
2623
+ - pafa
2618
2624
  - mr
2619
2625
  - nyb
2620
2626
  - usps
@@ -2899,12 +2905,33 @@ components:
2899
2905
  type: string
2900
2906
  enum:
2901
2907
  - Success
2908
+ Context:
2909
+ title: Context
2910
+ type: string
2911
+ enum:
2912
+ - GBR
2913
+ - USA
2914
+ description: Limits search results within a geographical boundary or country.
2915
+ NoContext:
2916
+ title: No Context Provided
2917
+ type: string
2918
+ enum:
2919
+ - ''
2920
+ description: Empty string if no context is provided or key check has failed
2902
2921
  ApiKey:
2903
2922
  title: Key
2904
2923
  type: object
2905
2924
  required:
2906
2925
  - available
2926
+ - context
2907
2927
  properties:
2928
+ context:
2929
+ description: >
2930
+ Returns current context if it is in the list of available contexts
2931
+ for this key.
2932
+ oneOf:
2933
+ - $ref: '#/components/schemas/Context'
2934
+ - $ref: '#/components/schemas/NoContext'
2908
2935
  available:
2909
2936
  description: |
2910
2937
  Determines whether the key can be used by the requesting agent.
@@ -3058,7 +3085,7 @@ components:
3058
3085
  expires:
3059
3086
  x-nullable: true
3060
3087
  type: string
3061
- example: 2022-01-06T11:41:27.092Z
3088
+ example: '2022-01-06T11:41:27.092Z'
3062
3089
  description: >-
3063
3090
  `string` or `null` The date when this purchase will expire in
3064
3091
  simplified
@@ -3190,11 +3217,11 @@ components:
3190
3217
  start:
3191
3218
  type: string
3192
3219
  description: Start date in ISO 8601 format.
3193
- example: 2015-01-22T15:08:06.609Z
3220
+ example: '2015-01-22T15:08:06.609Z'
3194
3221
  end:
3195
3222
  type: string
3196
3223
  description: End date in ISO 8601 format.
3197
- example: 2015-01-23T15:08:06.609Z
3224
+ example: '2015-01-23T15:08:06.609Z'
3198
3225
  total:
3199
3226
  type: integer
3200
3227
  description: Total of paid lookups performed in specified period.
@@ -3215,7 +3242,7 @@ components:
3215
3242
  properties:
3216
3243
  date:
3217
3244
  type: string
3218
- example: 2015-01-22T00:00:00.000Z
3245
+ example: '2015-01-22T00:00:00.000Z'
3219
3246
  count:
3220
3247
  type: integer
3221
3248
  format: int32
@@ -3239,13 +3266,6 @@ components:
3239
3266
  type: string
3240
3267
  enum:
3241
3268
  - Success
3242
- Context:
3243
- title: Context
3244
- type: string
3245
- enum:
3246
- - gbr
3247
- - usa
3248
- description: Limits search results within a geographical boundary or country.
3249
3269
  LimitParam:
3250
3270
  title: Limit
3251
3271
  description: >
@@ -3384,50 +3404,48 @@ components:
3384
3404
  Biases search based on approximate geolocation of IP address.
3385
3405
  Set `bias_ip=true` to enable.
3386
3406
  example: bias_ip=true
3387
- PafSuggestion:
3388
- title: UK Postcode Address File Address Autocompletion Hit
3389
- description: Represents an address suggestion from the UK Postcode Address File.
3407
+ AddressSuggestion:
3408
+ title: Address Suggestion
3409
+ description: Represents an address suggestion for any address in the world
3390
3410
  type: object
3391
3411
  required:
3392
3412
  - id
3393
3413
  - suggestion
3394
- - udprn
3395
3414
  - urls
3396
3415
  properties:
3397
3416
  id:
3398
3417
  $ref: '#/components/schemas/ID'
3399
3418
  suggestion:
3400
3419
  type: string
3401
- description: Address suggestion for your given query.
3420
+ description: Address Suggestion to be displayed to the user
3402
3421
  example: Flat 6, 12 Roskear, Camborne, TR14
3403
- udprn:
3404
- $ref: '#/components/schemas/UDPRN'
3405
3422
  urls:
3406
- required:
3407
- - udprn
3408
3423
  type: object
3409
- properties:
3410
- udprn:
3411
- type: string
3412
- description: >-
3413
- URL to retrieve the entire details for a given address
3414
- suggestion by the UDPRN
3415
- example: /v1/udprn/50985827
3416
- MrSuggestion:
3417
- title: Multiple Residence Address Autocompletion Hit
3424
+ UkAddressSuggestion:
3425
+ title: UK Address Suggestion
3426
+ description: >
3427
+ Represents a possible address given an autocomplete query.
3428
+
3429
+
3430
+ UK Address Suggestions will return a UDPRN attribute if it references a
3431
+ deliverable endpoint found on Royal Mail's Postcode Address File
3432
+ dataset.
3433
+
3434
+
3435
+ UK Address Suggestion will return a UMPRN if it references a multiple
3436
+ occupancy premise found on Royal Mail's Multiple Residence dataset.
3418
3437
  type: object
3419
3438
  required:
3420
3439
  - id
3421
3440
  - suggestion
3422
3441
  - udprn
3423
- - umprn
3424
3442
  - urls
3425
3443
  properties:
3426
3444
  id:
3427
3445
  $ref: '#/components/schemas/ID'
3428
3446
  suggestion:
3429
3447
  type: string
3430
- description: Address suggestion for your given query.
3448
+ description: Address suggestion for a given query.
3431
3449
  example: Flat 6, 12 Roskear, Camborne, TR14
3432
3450
  udprn:
3433
3451
  $ref: '#/components/schemas/UDPRN'
@@ -3439,10 +3457,9 @@ components:
3439
3457
  Residence household
3440
3458
  example: 51103417
3441
3459
  urls:
3442
- type: object
3443
3460
  required:
3444
3461
  - udprn
3445
- - umprn
3462
+ type: object
3446
3463
  properties:
3447
3464
  udprn:
3448
3465
  type: string
@@ -3456,38 +3473,6 @@ components:
3456
3473
  Optionally returned field, to retrieve the entire details for a
3457
3474
  suggested Multiple Residence household
3458
3475
  example: /v1/umprn/51103417
3459
- NybSuggestion:
3460
- title: Not Yet Built Address Autocompletion Hit
3461
- allOf:
3462
- - $ref: '#/components/schemas/PafSuggestion'
3463
- PafwSuggestion:
3464
- title: Welsh Postcode Address File Address Autocompletion Hit
3465
- allOf:
3466
- - $ref: '#/components/schemas/PafSuggestion'
3467
- GlobalAddressSuggestion:
3468
- title: Global Address Autocompletion Suggestion
3469
- description: Represents an address suggestion for any address in the world
3470
- type: object
3471
- required:
3472
- - id
3473
- - suggestion
3474
- - urls
3475
- properties:
3476
- id:
3477
- $ref: '#/components/schemas/ID'
3478
- suggestion:
3479
- type: string
3480
- description: Address Suggestion to be displayed to the user
3481
- example: Flat 6, 12 Roskear, Camborne, TR14
3482
- urls:
3483
- type: object
3484
- properties:
3485
- id:
3486
- type: string
3487
- description: >-
3488
- URL to retrieve the entire details for a given address
3489
- suggestion by the UDPRN
3490
- example: /v1/udprn/50985827
3491
3476
  AutocompleteResponse:
3492
3477
  title: Address Autocomplete Response
3493
3478
  type: object
@@ -3505,11 +3490,8 @@ components:
3505
3490
  type: array
3506
3491
  items:
3507
3492
  oneOf:
3508
- - $ref: '#/components/schemas/PafSuggestion'
3509
- - $ref: '#/components/schemas/MrSuggestion'
3510
- - $ref: '#/components/schemas/NybSuggestion'
3511
- - $ref: '#/components/schemas/PafwSuggestion'
3512
- - $ref: '#/components/schemas/GlobalAddressSuggestion'
3493
+ - $ref: '#/components/schemas/AddressSuggestion'
3494
+ - $ref: '#/components/schemas/UkAddressSuggestion'
3513
3495
  code:
3514
3496
  type: integer
3515
3497
  format: int32
@@ -3530,6 +3512,26 @@ components:
3530
3512
  $ref: '#/components/schemas/Dataset'
3531
3513
  enum:
3532
3514
  - pafw
3515
+ PafAliasAddress:
3516
+ title: PAF Alias Address
3517
+ description: >
3518
+ PAF Aliases addresses are alternate ways to present an address already
3519
+ found on PAF.
3520
+
3521
+
3522
+ Alias data is information the public chooses to use when addressing
3523
+ mail, but which isn’t actually required for delivery purposes. The
3524
+ Alias data contains records of alternative address details that are
3525
+ included in the address but not necessarily needed for delivery
3526
+ purposes.
3527
+ allOf:
3528
+ - $ref: '#/components/schemas/PafAddress'
3529
+ - type: object
3530
+ properties:
3531
+ dataset:
3532
+ $ref: '#/components/schemas/Dataset'
3533
+ enum:
3534
+ - pafa
3533
3535
  GbrGlobalAddress:
3534
3536
  title: Global Address
3535
3537
  description: Global (non-UK) address in the UK address format
@@ -3716,6 +3718,7 @@ components:
3716
3718
  - $ref: '#/components/schemas/PafAddress'
3717
3719
  - $ref: '#/components/schemas/MrAddress'
3718
3720
  - $ref: '#/components/schemas/WelshPafAddress'
3721
+ - $ref: '#/components/schemas/PafAliasAddress'
3719
3722
  - $ref: '#/components/schemas/NybAddress'
3720
3723
  - $ref: '#/components/schemas/GbrGlobalAddress'
3721
3724
  usps_dataset:
@@ -4480,6 +4483,32 @@ components:
4480
4483
  oneOf:
4481
4484
  - $ref: '#/components/schemas/UspsAddress'
4482
4485
  - $ref: '#/components/schemas/UsaGlobalAddress'
4486
+ AddressLongitudeParam:
4487
+ title: Longitude
4488
+ type: number
4489
+ format: float
4490
+ description: >
4491
+ Longitude query for reverse geocoding.
4492
+
4493
+
4494
+ An accompanying latitude (lat=) query must be submitted for a valid
4495
+ reverse geocode query.
4496
+ minimum: -90
4497
+ maximum: 90
4498
+ example: -0.12767
4499
+ AddressLatitudeParam:
4500
+ title: Latitude
4501
+ type: number
4502
+ format: float
4503
+ description: >
4504
+ Latitude query for reverse geocoding.
4505
+
4506
+
4507
+ An accompanying longitude (lon=) query must be submitted for a valid
4508
+ reverse geocode query.
4509
+ minimum: -90
4510
+ maximum: 90
4511
+ example: 51.503541
4483
4512
  AddressResponse:
4484
4513
  title: Address Search Response
4485
4514
  type: object
@@ -4514,6 +4543,8 @@ components:
4514
4543
  - $ref: '#/components/schemas/PafAddress'
4515
4544
  - $ref: '#/components/schemas/MrAddress'
4516
4545
  - $ref: '#/components/schemas/NybAddress'
4546
+ - $ref: '#/components/schemas/WelshPafAddress'
4547
+ - $ref: '#/components/schemas/PafAliasAddress'
4517
4548
  total:
4518
4549
  minimum: 0
4519
4550
  maximum: 10000
@@ -4604,7 +4635,7 @@ components:
4604
4635
  Typically begins `sk_`.
4605
4636
  createdAt:
4606
4637
  type: string
4607
- example: 2016-01-21T17:14:49.971Z
4638
+ example: '2016-01-21T17:14:49.971Z'
4608
4639
  description: Timestamp for when the licensee was created
4609
4640
  daily:
4610
4641
  required:
@@ -4622,7 +4653,7 @@ components:
4622
4653
  represented b `licesees.daily.updatedAt`
4623
4654
  updatedAt:
4624
4655
  type: string
4625
- example: 2016-08-05T16:43:28.865Z
4656
+ example: '2016-08-05T16:43:28.865Z'
4626
4657
  description: The timestamp when the limit was last used.
4627
4658
  LicenseesResponse:
4628
4659
  title: Licensee List Response
@@ -4684,11 +4715,11 @@ components:
4684
4715
  properties:
4685
4716
  updatedAt:
4686
4717
  type: string
4687
- example: 2016-01-21T17:14:49.971Z
4718
+ example: '2016-01-21T17:14:49.971Z'
4688
4719
  description: Timestamp for when the config was created
4689
4720
  createdAt:
4690
4721
  type: string
4691
- example: 2016-01-21T17:14:49.971Z
4722
+ example: '2016-01-21T17:14:49.971Z'
4692
4723
  description: Timestamp for when the config was updated
4693
4724
  name:
4694
4725
  type: string
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@addresszen/openapi",
3
3
  "description": "AddressZen OpenAPI v3 specifications",
4
- "version": "2.0.3",
4
+ "version": "3.0.0",
5
5
  "devDependencies": {
6
6
  "@cablanchard/semantic-release": "~1.3.4",
7
7
  "@cablanchard/tsconfig": "~2.0.0",
@@ -56,7 +56,7 @@
56
56
  "Address Lookup"
57
57
  ],
58
58
  "dependencies": {
59
- "@ideal-postcodes/openapi": "~2.1.1",
59
+ "@ideal-postcodes/openapi": "~3.0.0",
60
60
  "replace-in-file": "~6.3.2",
61
61
  "ts-node": "^10.7.0"
62
62
  }