Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/check-docs-up-to-date.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Check docs are up to date

on:
pull_request:
paths:
- 'jsonschema/**'

jobs:
check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Install Poetry
working-directory: ./jsonschema
uses: abatilo/actions-poetry@v3

- name: Install dependencies
working-directory: ./jsonschema
run: poetry install

- name: Check docs are up-to-date
working-directory: ./jsonschema
run: poetry run python generate_schema_docs.py --check
Comment on lines +27 to +29
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't there tools for committing back to the branch for things like this? Could we just run the generate and push back, instead of running the --check?

650 changes: 650 additions & 0 deletions jsonschema/docs/AccessRestriction.md

Large diffs are not rendered by default.

609 changes: 609 additions & 0 deletions jsonschema/docs/Activity.md

Large diffs are not rendered by default.

95 changes: 95 additions & 0 deletions jsonschema/docs/Address.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Address

**Title:** Address

| | |
| ------------------------- | ---------------- |
| **Type** | `object` |
| **Required** | No |
| **Additional properties** | Any type allowed |

**Description:** A single physical address

| Property | Type | Title/Description |
| ------------------------------------ | -------------- | ------------------- |
| - [@id](#@id ) | string | - |
| - [@type](#@type ) | string | - |
| - [country-name](#country-name ) | null or string | country |
| - [locality](#locality ) | null or string | locality |
| - [postal-code](#postal-code ) | null or string | postal code |
| - [region](#region ) | null or string | administrative area |
| - [street-address](#street-address ) | null or string | street address |

## <a name="@id"></a>Property `Address > @id`

| | |
| ------------ | -------- |
| **Type** | `string` |
| **Required** | No |
| **Format** | `iri` |

## <a name="@type"></a>Property `Address > @type`

| | |
| ------------ | ----------- |
| **Type** | `string` |
| **Required** | No |
| **Default** | `"Address"` |

## <a name="country-name"></a>Property `Address > country-name`

**Title:** country

| | |
| ------------ | ---------------- |
| **Type** | `null or string` |
| **Required** | No |

**Description:** The country of the Address

## <a name="locality"></a>Property `Address > locality`

**Title:** locality

| | |
| ------------ | ---------------- |
| **Type** | `null or string` |
| **Required** | No |

**Description:** The city of the Address

## <a name="postal-code"></a>Property `Address > postal-code`

**Title:** postal code

| | |
| ------------ | ---------------- |
| **Type** | `null or string` |
| **Required** | No |

**Description:** The postal code of the Address

## <a name="region"></a>Property `Address > region`

**Title:** administrative area

| | |
| ------------ | ---------------- |
| **Type** | `null or string` |
| **Required** | No |

**Description:** The administrative area of the Address. Depending on the country, this corresponds to a province, a county, a region, or a state

## <a name="street-address"></a>Property `Address > street-address`

**Title:** street address

| | |
| ------------ | ---------------- |
| **Type** | `null or string` |
| **Required** | No |

**Description:** The street name and civic number of an Address

----------------------------------------------------------------------------------------------------------------------------
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans)
Loading
Loading