Skip to content

Commit 8d84a1a

Browse files
committed
fixup! editoast: split temporary_speed_limit_group into two endpoints
1 parent 3200621 commit 8d84a1a

File tree

7 files changed

+476
-339
lines changed

7 files changed

+476
-339
lines changed

editoast/openapi.yaml

+84-40
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,11 @@ paths:
678678
get:
679679
tags:
680680
- delimited_area
681+
summary: Return any track between one of the `entries` and one of the `exits`, i.e. any track that can
682+
description: |-
683+
be reached from an entry before reaching an exit.
684+
To prevent a missing exit to cause the graph traversal to never stop exploring, the exploration
685+
stops when a maximum distance is reached and no exit has been found.
681686
parameters:
682687
- name: infra_id
683688
in: path
@@ -697,26 +702,7 @@ paths:
697702
track_ranges:
698703
type: array
699704
items:
700-
type: object
701-
required:
702-
- track
703-
- begin
704-
- end
705-
- direction
706-
properties:
707-
begin:
708-
type: number
709-
format: double
710-
direction:
711-
$ref: '#/components/schemas/Direction'
712-
end:
713-
type: number
714-
format: double
715-
track:
716-
type: string
717-
maxLength: 255
718-
minLength: 1
719-
additionalProperties: false
705+
$ref: '#/components/schemas/DirectionalTrackRange'
720706
required: true
721707
responses:
722708
'200':
@@ -731,26 +717,7 @@ paths:
731717
track_ranges:
732718
type: array
733719
items:
734-
type: object
735-
required:
736-
- track
737-
- begin
738-
- end
739-
- direction
740-
properties:
741-
begin:
742-
type: number
743-
format: double
744-
direction:
745-
$ref: '#/components/schemas/Direction'
746-
end:
747-
type: number
748-
format: double
749-
track:
750-
type: string
751-
maxLength: 255
752-
minLength: 1
753-
additionalProperties: false
720+
$ref: '#/components/schemas/DirectionalTrackRange'
754721
/infra/{infra_id}/errors:
755722
get:
756723
tags:
@@ -3563,6 +3530,15 @@ components:
35633530
force:
35643531
type: boolean
35653532
description: force the deletion even if it's used
3533+
DelimitedAreaResponse:
3534+
type: object
3535+
required:
3536+
- track_ranges
3537+
properties:
3538+
track_ranges:
3539+
type: array
3540+
items:
3541+
$ref: '#/components/schemas/DirectionalTrackRange'
35663542
Detector:
35673543
type: object
35683544
required:
@@ -3596,6 +3572,22 @@ components:
35963572
maxLength: 255
35973573
minLength: 1
35983574
additionalProperties: false
3575+
DirectedLocation:
3576+
type: object
3577+
required:
3578+
- track
3579+
- position
3580+
- direction
3581+
properties:
3582+
direction:
3583+
$ref: '#/components/schemas/Direction'
3584+
position:
3585+
type: number
3586+
format: double
3587+
track:
3588+
type: string
3589+
maxLength: 255
3590+
minLength: 1
35993591
Direction:
36003592
type: string
36013593
enum:
@@ -4138,6 +4130,30 @@ components:
41384130
type: string
41394131
enum:
41404132
- editoast:DatabaseAccessError
4133+
EditoastDelimitedAreaErrorInvalidLocations:
4134+
type: object
4135+
required:
4136+
- type
4137+
- status
4138+
- message
4139+
properties:
4140+
context:
4141+
type: object
4142+
required:
4143+
- invalid_locations
4144+
properties:
4145+
invalid_locations:
4146+
type: array
4147+
message:
4148+
type: string
4149+
status:
4150+
type: integer
4151+
enum:
4152+
- 400
4153+
type:
4154+
type: string
4155+
enum:
4156+
- editoast:delimited_area:InvalidLocations
41414157
EditoastDocumentErrorsNotFound:
41424158
type: object
41434159
required:
@@ -4290,6 +4306,7 @@ components:
42904306
- $ref: '#/components/schemas/EditoastCoreErrorGenericCoreError'
42914307
- $ref: '#/components/schemas/EditoastCoreErrorUnparsableErrorOutput'
42924308
- $ref: '#/components/schemas/EditoastDatabaseAccessErrorDatabaseAccessError'
4309+
- $ref: '#/components/schemas/EditoastDelimitedAreaErrorInvalidLocations'
42934310
- $ref: '#/components/schemas/EditoastDocumentErrorsNotFound'
42944311
- $ref: '#/components/schemas/EditoastEditionErrorInfraIsLocked'
42954312
- $ref: '#/components/schemas/EditoastEditionErrorSplitTrackSectionBadOffset'
@@ -6615,6 +6632,33 @@ components:
66156632
properties:
66166633
state:
66176634
$ref: '#/components/schemas/InfraState'
6635+
InputError:
6636+
oneOf:
6637+
- type: object
6638+
required:
6639+
- TrackDoesNotExist
6640+
properties:
6641+
TrackDoesNotExist:
6642+
type: string
6643+
- type: object
6644+
required:
6645+
- LocationOutOfBounds
6646+
properties:
6647+
LocationOutOfBounds:
6648+
type: object
6649+
required:
6650+
- track
6651+
- position
6652+
- track_length
6653+
properties:
6654+
position:
6655+
type: number
6656+
format: double
6657+
track:
6658+
type: string
6659+
track_length:
6660+
type: number
6661+
format: double
66186662
InternalError:
66196663
type: object
66206664
required:

0 commit comments

Comments
 (0)