Skip to content
Merged
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
8 changes: 7 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
import matter from "gray-matter";
import listRemote from "./docusaurus-lib-list-remote";
import { openApiSpecs } from "./preprocessing";
import { preprocessOpenApiSpecs, openApiSpecs } from './src/openapi/preprocessing';
import languageTabs from "./openapi-generated-clients";
import { getSpecDocumentationPlugins } from './src/utils/spec-documentation';

// Execute the preprocessing function for OpenAPI specs
preprocessOpenApiSpecs().catch(error => {
console.error('Failed to preprocess OpenAPI specs:', error);
process.exit(1);
});

const otdfctl = listRemote.createRepo("opentdf", "otdfctl", "main");

const config: Config = {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"write-heading-ids": "docusaurus write-heading-ids",
"gen-api-docs-all": "docusaurus gen-api-docs all --all-versions",
"gen-api-docs-clean": "docusaurus clean-api-docs all",
"check-vendored-yaml": "tsx scripts/check-vendored-yaml.ts",
"update-vendored-yaml": "tsx scripts/update-vendored-yaml.ts"
"check-vendored-yaml": "tsx src/openapi/check-vendored-yaml.ts",
"update-vendored-yaml": "tsx src/openapi/update-vendored-yaml.ts"
},
"dependencies": {
"@docusaurus/core": "^3.6.3",
Expand Down
14 changes: 9 additions & 5 deletions specs/policy/actions/actions.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,14 @@ components:
Wrapper message for `bool`.

The JSON representation for `BoolValue` is JSON `true` and `false`.

Not recommended for use in new APIs, but still useful for legacy APIs and
has no plan to be removed.
google.protobuf.Timestamp:
type: string
examples:
- 1s
- 1.000340012s
format: date-time
description: |-
A Timestamp represents a point in time independent of any time zone or local
Expand Down Expand Up @@ -463,7 +469,7 @@ components:
items:
$ref: '#/components/schemas/policy.KeyAccessServer'
title: grants
description: Deprecated
description: Deprecated KAS grants for the attribute. Use kas_keys instead.
fqn:
type: string
title: fqn
Expand Down Expand Up @@ -650,7 +656,7 @@ components:
items:
$ref: '#/components/schemas/policy.KeyAccessServer'
title: grants
description: KAS grants for the namespace
description: Deprecated KAS grants for the namespace. Use kas_keys instead.
kasKeys:
type: array
items:
Expand Down Expand Up @@ -897,9 +903,7 @@ components:
items:
$ref: '#/components/schemas/policy.KeyAccessServer'
title: grants
description: |-
Deprecated
list of key access servers
description: Deprecated KAS grants for the value. Use kas_keys instead.
fqn:
type: string
title: fqn
Expand Down
30 changes: 24 additions & 6 deletions specs/policy/attributes/attributes.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ paths:
Fully Qualified Names of attribute values (i.e. https://<namespace>/attr/<attribute_name>/value/<value_name>), normalized to lower case.
- name: withValue.withKeyAccessGrants
in: query
description: Deprecated
schema:
type: boolean
title: with_key_access_grants
description: Deprecated
- name: withValue.withSubjectMaps
in: query
schema:
Expand All @@ -152,9 +154,11 @@ paths:
title: with_resource_maps
- name: withValue.withAttribute.withKeyAccessGrants
in: query
description: Deprecated
schema:
type: boolean
title: with_key_access_grants
description: Deprecated
responses:
default:
description: Error
Expand Down Expand Up @@ -456,6 +460,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/policy.attributes.AssignKeyAccessServerToAttributeResponse'
deprecated: true
/policy.attributes.AttributesService/RemoveKeyAccessServerFromAttribute:
post:
tags:
Expand Down Expand Up @@ -491,6 +496,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/policy.attributes.RemoveKeyAccessServerFromAttributeResponse'
deprecated: true
/policy.attributes.AttributesService/AssignKeyAccessServerToValue:
post:
tags:
Expand Down Expand Up @@ -526,6 +532,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/policy.attributes.AssignKeyAccessServerToValueResponse'
deprecated: true
/policy.attributes.AttributesService/RemoveKeyAccessServerFromValue:
post:
tags:
Expand Down Expand Up @@ -561,6 +568,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/policy.attributes.RemoveKeyAccessServerFromValueResponse'
deprecated: true
/policy.attributes.AttributesService/AssignPublicKeyToAttribute:
post:
tags:
Expand Down Expand Up @@ -842,8 +850,14 @@ components:
Wrapper message for `bool`.

The JSON representation for `BoolValue` is JSON `true` and `false`.

Not recommended for use in new APIs, but still useful for legacy APIs and
has no plan to be removed.
google.protobuf.Timestamp:
type: string
examples:
- 1s
- 1.000340012s
format: date-time
description: |-
A Timestamp represents a point in time independent of any time zone or local
Expand Down Expand Up @@ -996,7 +1010,7 @@ components:
items:
$ref: '#/components/schemas/policy.KeyAccessServer'
title: grants
description: Deprecated
description: Deprecated KAS grants for the attribute. Use kas_keys instead.
fqn:
type: string
title: fqn
Expand Down Expand Up @@ -1024,6 +1038,7 @@ components:
withKeyAccessGrants:
type: boolean
title: with_key_access_grants
description: Deprecated
withSubjectMaps:
type: boolean
title: with_subject_maps
Expand All @@ -1041,6 +1056,7 @@ components:
withKeyAccessGrants:
type: boolean
title: with_key_access_grants
description: Deprecated
withNamespace:
title: with_namespace
$ref: '#/components/schemas/policy.AttributeValueSelector.AttributeSelector.NamespaceSelector'
Expand Down Expand Up @@ -1215,7 +1231,7 @@ components:
items:
$ref: '#/components/schemas/policy.KeyAccessServer'
title: grants
description: KAS grants for the namespace
description: Deprecated KAS grants for the namespace. Use kas_keys instead.
kasKeys:
type: array
items:
Expand Down Expand Up @@ -1462,9 +1478,7 @@ components:
items:
$ref: '#/components/schemas/policy.KeyAccessServer'
title: grants
description: |-
Deprecated
list of key access servers
description: Deprecated KAS grants for the value. Use kas_keys instead.
fqn:
type: string
title: fqn
Expand Down Expand Up @@ -1601,6 +1615,7 @@ components:
description: Required
title: AttributeKeyAccessServer
additionalProperties: false
description: Deprecated
policy.attributes.CreateAttributeRequest:
type: object
properties:
Expand Down Expand Up @@ -1633,7 +1648,10 @@ components:
uniqueItems: true
title: values
uniqueItems: true
description: "Optional \n Attribute values (when provided) must be alphanumeric strings, allowing hyphens and underscores but not as the first or last character.\n The stored attribute value will be normalized to lower case."
description: |-
Optional
Attribute values (when provided) must be alphanumeric strings, allowing hyphens and underscores but not as the first or last character.
The stored attribute value will be normalized to lower case.
metadata:
title: metadata
description: Optional
Expand Down
Loading