Skip to content

fix: update schema references to use lowercase filenames#25

Merged
hola-soy-milk merged 2 commits intodirectus:mainfrom
PetrBrabec:main
May 21, 2025
Merged

fix: update schema references to use lowercase filenames#25
hola-soy-milk merged 2 commits intodirectus:mainfrom
PetrBrabec:main

Conversation

@PetrBrabec
Copy link
Copy Markdown
Contributor

@PetrBrabec PetrBrabec commented Apr 18, 2025

Closes #6

  • Changed references in various YAML files from uppercase to lowercase for consistency across the API specification.
  • Updated paths for permissions, policies, presets, relations, revisions, roles, shares, translations, users, and versions.
  • Added a script to fix casing issues in references automatically.

- Changed references in various YAML files from uppercase to lowercase for consistency across the API specification.
- Updated paths for permissions, policies, presets, relations, revisions, roles, shares, translations, users, and versions.
- Added a script to fix casing issues in references automatically.
Copilot AI review requested due to automatic review settings April 18, 2025 19:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates schema file references from uppercase to lowercase filenames to ensure consistency across the API specification.

  • Updated $ref values in YAML schemas to use lowercase filenames.
  • Added a script to automatically fix casing issues.

Reviewed Changes

Copilot reviewed 144 out of 144 changed files in this pull request and generated no comments.

Show a summary per file
File Description
openapi/components/schemas/shares.yaml Updated references for collections, shares, and users to lowercase.
openapi/components/schemas/settings.yaml Changed file references under multiple properties from uppercase to lowercase.
openapi/components/schemas/schema.yaml Updated schema references for collections, fields, and relations.
openapi/components/schemas/roles.yaml Modified roles and user references to lowercase.
openapi/components/schemas/revisions.yaml Adjusted references for activity, collections, and versions to lowercase.
openapi/components/schemas/presets.yaml Updated references for users, roles, and collections to lowercase.
openapi/components/schemas/policies.yaml Changed references for users, roles, and permissions to lowercase.
openapi/components/schemas/permissions.yaml Updated reference for policies to lowercase.
openapi/components/schemas/panels.yaml Modified references for dashboards and users to lowercase.
openapi/components/schemas/operations.yaml Updated references for operations, flows, and users to lowercase.
openapi/components/schemas/notifications.yaml Changed user references to lowercase.
openapi/components/schemas/folders.yaml Updated folder references to lowercase.
openapi/components/schemas/flows.yaml Adjusted references for operations and users to lowercase.
openapi/components/schemas/files.yaml Changed folder and user references to lowercase.
openapi/components/schemas/fields.yaml Updated field references to lowercase.
openapi/components/schemas/dashboards.yaml Modified references for users and panels to lowercase.
openapi/components/schemas/comments.yaml Updated user references to lowercase.
openapi/components/schemas/collections.yaml Changed collection reference to lowercase.
openapi/components/schemas/activity.yaml Updated references for users, collections, and revisions to lowercase.
openapi/components/schemas/_index.yaml Updated all schema references to lowercase for consistency.

Copy link
Copy Markdown
Contributor

@hola-soy-milk hola-soy-milk left a comment

Choose a reason for hiding this comment

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

This looks amazing, thank you so much, @PetrBrabec! And for your patience 💜

@hola-soy-milk hola-soy-milk merged commit 4652f7f into directus:main May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Schemas are duplicated

3 participants