OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
identify a week day by its href
Christophe Bliard625984b16f32
diff --git a/docs/api/apiv3/components/schemas/non_working_day_model.yml b/docs/api/apiv3/components/schemas/non_working_day_model.ymlindex 39b93b1a1f6..4e725ebbe24 100644--- a/docs/api/apiv3/components/schemas/non_working_day_model.yml+++ b/docs/api/apiv3/components/schemas/non_working_day_model.yml@@ -32,9 +32,9 @@ properties:**Resource**: NonWorkingDay or WeekDayexample:_type: NonWorkingDay- date: '2022-05-07'- name: Saturday+ date: '2022-12-25'+ name: Christmas_links:self:- href: /api/v3/work_schedule/non_working_days/2022-05-07- title: Saturday+ href: /api/v3/work_schedule/non_working_days/2022-12-25+ title: Christmasdiff --git a/docs/api/apiv3/components/schemas/week_day_collection_write_model.yml b/docs/api/apiv3/components/schemas/week_day_collection_write_model.ymlindex a65c2e81fd9..d5e9e87079b 100644--- a/docs/api/apiv3/components/schemas/week_day_collection_write_model.yml+++ b/docs/api/apiv3/components/schemas/week_day_collection_write_model.yml@@ -18,33 +18,45 @@ properties:type: arraydescription: |-The array of week days.- minItems: 7+ minItems: 1maxItems: 7items:- $ref: './week_day_write_model.yml'+ allOf:+ - $ref: './week_day_write_model.yml'+ - type: object+ required:+ - _links+ properties:+ _links:+ allOf:+ - $ref: './week_day_self_link_model.yml'example:_type: Collection_embedded:elements:- _type: WeekDay- day: 1working: true+ _links:+ self:+ href: '/api/v3/days/week/1'- _type: WeekDay- day: 2working: true+ _links:+ self:+ href: '/api/v3/days/week/2'- _type: WeekDay- day: 3working: true+ _links:+ self:+ href: '/api/v3/days/week/4'- _type: WeekDay- day: 4- working: true- - _type: WeekDay- day: 5- working: true- - _type: WeekDay- day: 6working: false+ _links:+ self:+ href: '/api/v3/days/week/6'- _type: WeekDay- day: 7working: false+ _links:+ self:+ href: '/api/v3/days/week/7'diff --git a/docs/api/apiv3/components/schemas/week_day_model.yml b/docs/api/apiv3/components/schemas/week_day_model.ymlindex 973112d4784..47c0441d547 100644--- a/docs/api/apiv3/components/schemas/week_day_model.yml+++ b/docs/api/apiv3/components/schemas/week_day_model.yml@@ -27,16 +27,8 @@ properties:description: |-`true` for a working day. `false` for a weekend day._links:- type: object- properties:- self:- allOf:- - "$ref": "./link.yml"- - description: |-- This week day resource link.-- **Resource**: WeekDay- readOnly: true+ allOf:+ - $ref: './week_day_self_link_model.yml'example:_type: WeekDayday: 5diff --git a/docs/api/apiv3/components/schemas/week_day_self_link_model.yml b/docs/api/apiv3/components/schemas/week_day_self_link_model.ymlnew file mode 100644index 00000000000..de3b10bce97--- /dev/null+++ b/docs/api/apiv3/components/schemas/week_day_self_link_model.yml@@ -0,0 +1,18 @@+# WeekDaySelfLinkModel+---+type: object+description: |-+ Identify a particular week day by its href.+properties:+ self:+ allOf:+ - "$ref": "./link.yml"+ - description: |-+ This week day resource link.++ **Resource**: WeekDay+ readOnly: true+example:+ self:+ href: /api/v3/days/week/3+ title: Wednesdaydiff --git a/docs/api/apiv3/components/schemas/week_day_write_model.yml b/docs/api/apiv3/components/schemas/week_day_write_model.ymlindex d53b23c3707..f87c79c5a9b 100644--- a/docs/api/apiv3/components/schemas/week_day_write_model.yml+++ b/docs/api/apiv3/components/schemas/week_day_write_model.yml@@ -5,25 +5,16 @@ description: |-Describes a week day as a working day or a non working day (weekend).required:- _type- - day- workingproperties:_type:type: stringenum:- WeekDay- day:- type: integer- description: |-- The week day from 1 to 7. 1 is Monday. 7 is Sunday.- readOnly: true- minimum: 1- maximum: 7working:type: booleandescription: |-`true` for a working day. `false` for a weekend day.example:_type: WeekDay- day: 5working: falsediff --git a/docs/api/apiv3/openapi-spec.yml b/docs/api/apiv3/openapi-spec.ymlindex 1114f2e487e..754962392b6 100644--- a/docs/api/apiv3/openapi-spec.yml+++ b/docs/api/apiv3/openapi-spec.yml@@ -778,6 +778,8 @@ components:"$ref": "./components/schemas/week_day_collection_write_model.yml"WeekDayModel:"$ref": "./components/schemas/week_day_model.yml"+ WeekDaySelfLinkModel:+ "$ref": "./components/schemas/week_day_self_link_model.yml"WeekDayWriteModel:"$ref": "./components/schemas/week_day_write_model.yml"Wiki_PageModel: