Skip to content

Commit

Permalink
🐳 Update objecttypes docker fixture
Browse files Browse the repository at this point in the history
* update readme to use the correct command
* add `bsn` field to Person objecttype to use it for Objects API prefill ownership check
  • Loading branch information
stevenbal committed Nov 25, 2024
1 parent 7f43177 commit e1d5777
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 4 deletions.
1 change: 1 addition & 0 deletions docker/objects-apis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ docker compose -f docker-compose.objects-apis.yml run objecttypes-web \
--indent=4 \
--output /app/fixtures/objecttypes_api_fixtures.json \
core.objecttype \
core.objectversion \
token
```

Expand Down
73 changes: 69 additions & 4 deletions docker/objects-apis/fixtures/objecttypes_api_fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"documentation_url": "",
"labels": {},
"created_at": "2023-10-24",
"modified_at": "2024-02-08",
"modified_at": "2024-11-25",
"allow_geometry": true
}
},
Expand Down Expand Up @@ -210,8 +210,8 @@
"object_type": 1,
"version": 3,
"created_at": "2024-02-08",
"modified_at": "2024-02-08",
"published_at": "2024-02-08",
"modified_at": "2024-11-25",
"published_at": "2024-11-25",
"json_schema": {
"$id": "https://example.com/person.schema.json",
"type": "object",
Expand Down Expand Up @@ -262,7 +262,7 @@
}
}
},
"status": "draft"
"status": "published"
}
},
{
Expand Down Expand Up @@ -389,6 +389,71 @@
"status": "draft"
}
},
{
"model": "core.objectversion",
"pk": 9,
"fields": {
"object_type": 1,
"version": 4,
"created_at": "2024-11-25",
"modified_at": "2024-11-25",
"published_at": "2024-11-25",
"json_schema": {
"$id": "https://example.com/person.schema.json",
"type": "object",
"title": "Person",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"age": {
"type": "integer",
"minimum": 18
},
"bsn": {
"type": "string"
},
"name": {
"type": "object",
"properties": {
"last.name": {
"type": "string"
}
}
},
"nested": {
"type": "object",
"properties": {
"unrelated": {
"type": "string"
},
"submission_payment_amount": {
"type": "number",
"multipleOf": 0.01
}
}
},
"submission_date": {
"type": "string",
"format": "date-time"
},
"submission_csv_url": {
"type": "string",
"format": "uri"
},
"submission_pdf_url": {
"type": "string",
"format": "uri"
},
"submission_payment_completed": {
"type": "boolean"
},
"submission_payment_public_ids": {
"type": "array"
}
}
},
"status": "draft"
}
},
{
"model": "token.tokenauth",
"pk": 1,
Expand Down

0 comments on commit e1d5777

Please sign in to comment.