mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Merge branch 'main' into fix-21492-kanban-selection-mode
This commit is contained in:
5
.changeset/tiny-jeans-matter.md
Normal file
5
.changeset/tiny-jeans-matter.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@directus/api": patch
|
||||
---
|
||||
|
||||
Fixed the generated OpenAPI specs to include POST, PATCH and DELETE paths again
|
||||
@@ -61,7 +61,7 @@ class OASSpecsService implements SpecificationSubService {
|
||||
}
|
||||
|
||||
async generate(host?: string) {
|
||||
let schema = this.schema;
|
||||
let schemaForSpec = this.schema;
|
||||
let permissions: Permission[] = [];
|
||||
|
||||
if (this.accountability && this.accountability.admin !== true) {
|
||||
@@ -70,22 +70,22 @@ class OASSpecsService implements SpecificationSubService {
|
||||
accountability: this.accountability,
|
||||
action: 'read',
|
||||
},
|
||||
{ schema, knex: this.knex },
|
||||
{ schema: this.schema, knex: this.knex },
|
||||
);
|
||||
|
||||
schema = reduceSchema(schema, allowedFields);
|
||||
schemaForSpec = reduceSchema(this.schema, allowedFields);
|
||||
|
||||
const policies = await fetchPolicies(this.accountability, { schema, knex: this.knex });
|
||||
const policies = await fetchPolicies(this.accountability, { schema: this.schema, knex: this.knex });
|
||||
|
||||
permissions = await fetchPermissions(
|
||||
{ action: 'read', policies, accountability: this.accountability },
|
||||
{ schema, knex: this.knex },
|
||||
{ policies, accountability: this.accountability },
|
||||
{ schema: this.schema, knex: this.knex },
|
||||
);
|
||||
}
|
||||
|
||||
const tags = await this.generateTags(schema);
|
||||
const tags = await this.generateTags(schemaForSpec);
|
||||
const paths = await this.generatePaths(permissions, tags);
|
||||
const components = await this.generateComponents(schema, tags);
|
||||
const components = await this.generateComponents(schemaForSpec, tags);
|
||||
|
||||
const isDefaultPublicUrl = env['PUBLIC_URL'] === '/';
|
||||
const url = isDefaultPublicUrl && host ? host : (env['PUBLIC_URL'] as string);
|
||||
|
||||
@@ -156,3 +156,4 @@
|
||||
- maxbritto
|
||||
- tennox
|
||||
- maxsteinwand
|
||||
- FatumaA
|
||||
|
||||
@@ -16,9 +16,9 @@ accidentally work on the same issue at the same time.
|
||||
## Choosing What to Implement
|
||||
|
||||
We welcome PRs for any open [Issue](https://github.com/directus/directus/issues). Issues labeled
|
||||
["Good First Issue"](https://github.com/directus/directus/issues?q=is:issue+is:open+label:%22Good+First+Issue%22) are
|
||||
typically easier to resolve for those who haven't contributed to the codebase before, and are therefore a great starting
|
||||
point.
|
||||
["Good First Issue"](https://github.com/directus/directus/issues?q=is:issue+is:open+label:%22:star:+Good+First+Issue%22)
|
||||
are typically easier to resolve for those who haven't contributed to the codebase before, and are therefore a great
|
||||
starting point.
|
||||
|
||||
## Implementing an Accepted Feature Request
|
||||
|
||||
|
||||
Reference in New Issue
Block a user