Skip to content

Commit

Permalink
Updates to schema properties
Browse files Browse the repository at this point in the history
- Enthinicy enums added. Choices are based on the US DOI standards for
  observeer collected demographic data.
  https://www.doi.gov/pmb/eeo/directives/race-data
- Added dates to Unit and Penalty.
- UID added to penalties
  • Loading branch information
DMalone87 committed Sep 16, 2024
1 parent 3d9bbea commit 50060ad
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
4 changes: 4 additions & 0 deletions oas/2.0/agencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ components:
zip:
type: "string"
description: "Zip code of the unit"
date_established:
type: string
description: The date that this unit was established by its parent agency.
format: date
Unit:
allOf:
- $ref: "#/components/schemas/BaseUnit"
Expand Down
24 changes: 16 additions & 8 deletions oas/2.0/complaints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ components:
Penalty:
type: "object"
properties:
uid:
type: string
description: UUID for the penalty.
officer:
allOf:
- $ref: officers.yaml#/components/schemas/Officer
Expand All @@ -367,6 +370,9 @@ components:
description:
type: "string"
description: "A description of the penalty."
date_assesed:
type: string
format: date
CreatePenalty:
type: "object"
properties:
Expand Down Expand Up @@ -414,21 +420,23 @@ components:
age:
type: "string"
description: "Age range of the individual."
race:
ethnicity:
type: "string"
description: "The race of the individual."
description: "The ethnicity of the individual."
enum:
- "White"
- "Black"
- "Hispanic"
- "Asian"
- "Native American"
- "Other"
- American Indian or Alaska Native
- Asian
- Black or African American
- Hispanic or Latino
- Native Hawaiian or Other Pacific Islander
- White
gender:
type: "string"
description: The gender of the individual.
enum:
- Male
- Female
- Other
ReviewBoard:
type: "object"
properties:
Expand Down
14 changes: 11 additions & 3 deletions oas/2.0/officers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,23 @@ components:
last_name:
type: "string"
description: "Last name of the officer"
race:
type: "string"
description: "The race of the officer"
ethnicity:
type: "string"
description: "The ethnicity of the officer"
enum:
- American Indian or Alaska Native
- Asian
- Black or African American
- Hispanic or Latino
- Native Hawaiian or Other Pacific Islander
- White
gender:
type: "string"
description: "The gender of the officer"
enum:
- Male
- Female
- Other
date_of_birth:
type: "string"
format: "date"
Expand Down

0 comments on commit 50060ad

Please sign in to comment.