1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/src/lib/openapi/spec
andreas-unleash e050495199
fix feature-schema.ts (#2729)
Signed-off-by: andreas-unleash <andreas@getunleash.ai>

<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->
This PR fixes the admin feature schema by moving the `strategies`
(featureStrategySchema) from the root of `feature` object to
`feature.environment`
## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->

<!-- Does it close an issue? Multiple? -->
Closes #

<!-- (For internal contributors): Does it relate to an issue on public
roadmap? -->
<!--
Relates to [roadmap](https://github.com/orgs/Unleash/projects/10) item:
#
-->

### Important files
<!-- PRs can contain a lot of changes, but not all changes are equally
important. Where should a reviewer start looking to get an overview of
the changes? Are any files particularly important? -->


## Discussion points
<!-- Anything about the PR you'd like to discuss before it gets merged?
Got any questions or doubts? -->

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2023-01-11 10:53:43 +02:00
..
__snapshots__ fix feature-schema.ts (#2729) 2023-01-11 10:53:43 +02:00
addon-parameter-schema.ts
addon-schema.test.ts
addon-schema.ts feat: support filtering on project and environment fields for events (#1801) 2022-07-12 12:13:25 +00:00
addon-type-schema.ts
addons-schema.test.ts
addons-schema.ts
admin-features-query-schema.test.ts feature: add query support to features endpoint (#2693) 2022-12-16 12:05:18 +01:00
admin-features-query-schema.ts feature: add query support to features endpoint (#2693) 2022-12-16 12:05:18 +01:00
api-token-schema.test.ts Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
api-token-schema.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
api-tokens-schema.ts
application-schema.ts
applications-schema.ts
change-password-schema.test.ts
change-password-schema.ts
client-application-schema.test.ts
client-application-schema.ts
client-feature-schema.ts refactor: use the same variant schema for the admin and client APIs (#1882) 2022-08-08 16:21:57 +02:00
client-features-query-schema.test.ts open api implementation - client features controller (#1745) 2022-06-30 12:54:14 +03:00
client-features-query-schema.ts fix: fix broken OpenAPI spec (#1846) 2022-07-28 09:19:58 +02:00
client-features-schema.test.ts refactor: use the same variant schema for the admin and client APIs (#1882) 2022-08-08 16:21:57 +02:00
client-features-schema.ts refactor: use the same variant schema for the admin and client APIs (#1882) 2022-08-08 16:21:57 +02:00
client-metrics-schema.test.ts OAS for client-api metrics.ts (#1753) 2022-06-30 13:27:12 +03:00
client-metrics-schema.ts OAS for client-api metrics.ts (#1753) 2022-06-30 13:27:12 +03:00
clone-feature-schema.ts
constraint-schema.test.ts
constraint-schema.ts refactor: move docs into new structure / fix links for SEO (#2416) 2022-11-22 09:05:30 +00:00
context-field-schema.test.ts refactor: remove bootstrap endpoint (#1900) 2022-08-09 15:58:27 +02:00
context-field-schema.ts
context-fields-schema.ts
create-api-token-schema.ts fix: Revert breaking change for incoming token creation reqs (#2084) 2022-09-23 16:01:47 +02:00
create-feature-schema.ts
create-feature-strategy-schema.ts feat: update strategy segments with edit / create strategy (#2420) 2022-11-16 15:35:39 +01:00
create-invited-user-schema.ts Feat/invite user (#2061) 2022-09-30 13:01:32 +02:00
create-user-schema.ts
date-schema.ts OAS for client-api metrics.ts (#1753) 2022-06-30 13:27:12 +03:00
edge-token-schema.ts Create endpoint that validates tokens for edge (#2039) 2022-09-01 13:26:26 +00:00
email-schema.test.ts
email-schema.ts
environment-project-schema.ts Update environments (#2339) 2022-11-11 10:24:56 +00:00
environment-schema.ts Update environments (#2339) 2022-11-11 10:24:56 +00:00
environments-project-schema.ts Update environments (#2339) 2022-11-11 10:24:56 +00:00
environments-schema.ts
event-schema.test.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
event-schema.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
events-schema.test.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
events-schema.ts feat: add count to event list (#2036) 2022-09-02 08:35:31 +02:00
export-query-parameters.ts fix: fix broken OpenAPI spec (#1846) 2022-07-28 09:19:58 +02:00
feature-environment-metrics-schema.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-environment-schema.test.ts fix feature-schema.ts (#2729) 2023-01-11 10:53:43 +02:00
feature-environment-schema.ts fix feature-schema.ts (#2729) 2023-01-11 10:53:43 +02:00
feature-events-schema.test.ts feat: add OpenAPI spec to events controller. (#1754) 2022-06-30 08:12:34 +00:00
feature-events-schema.ts feat: add event search endpoint (#1893) 2022-08-09 16:14:50 +02:00
feature-metrics-schema.test.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-metrics-schema.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-schema.test.ts fix feature-schema.ts (#2729) 2023-01-11 10:53:43 +02:00
feature-schema.ts fix feature-schema.ts (#2729) 2023-01-11 10:53:43 +02:00
feature-strategy-schema.ts open api implementation - client features controller (#1745) 2022-06-30 12:54:14 +03:00
feature-strategy-segment-schema.ts
feature-tag-schema.ts
feature-type-schema.test.ts
feature-type-schema.ts
feature-types-schema.ts
feature-usage-schema.test.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-usage-schema.ts OAS for client-metrics controller (#1739) 2022-06-27 11:17:44 +03:00
feature-variants-schema.ts
features-schema.test.ts
features-schema.ts fix feature-schema.ts (#2729) 2023-01-11 10:53:43 +02:00
feedback-schema.ts fix: fix broken OpenAPI spec (#1846) 2022-07-28 09:19:58 +02:00
group-schema.ts feat: add SSO mappings to groups (#2175) 2022-10-13 11:34:47 +01:00
group-user-model-schema.ts UX additions to groups SSO syncing (#2200) 2022-10-20 10:47:19 +03:00
groups-schema.test.ts Fix/remove group owner concept (#1905) 2022-08-11 08:23:08 +02:00
groups-schema.ts Feat/grouping (#1845) 2022-07-21 16:23:56 +02:00
health-check-schema.ts
health-overview-schema.ts fix feature-schema.ts (#2729) 2023-01-11 10:53:43 +02:00
health-report-schema.ts
id-schema.ts
index.ts feature: add query support to features endpoint (#2693) 2022-12-16 12:05:18 +01:00
instance-admin-stats-schema.test.ts Feat/stats service (#2211) 2022-10-25 13:10:27 +02:00
instance-admin-stats-schema.ts Feat/stats service (#2211) 2022-10-25 13:10:27 +02:00
legal-value-schema.ts
login-schema.ts
maintenance-schema.ts Maintenance mode for users (#2716) 2022-12-21 13:23:44 +02:00
me-schema.test.ts
me-schema.ts
name-schema.ts
override-schema.ts
parameters-schema.ts
password-schema.ts
pat-schema.ts Change PAT primary key from string to number (#2163) 2022-10-10 13:35:12 +03:00
patch-schema.ts
patches-schema.ts
pats-schema.ts Personal access tokens backend (#2064) 2022-09-16 10:54:27 +03:00
permission-schema.ts
playground-constraint-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-feature-schema.test.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-feature-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-request-schema.test.ts feat: add playground API post endpoint (#1791) 2022-07-12 13:01:10 +02:00
playground-request-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-response-schema.test.ts feat: add all feature variants to the playground payload (#1835) 2022-07-20 08:54:34 +02:00
playground-response-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-segment-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
playground-strategy-schema.ts feat(#1873/playground): Return detailed information on feature toggle evaluation (#1839) 2022-08-04 15:41:52 +02:00
profile-schema.test.ts Add some extra fields for profile (#2119) 2022-09-30 14:36:45 +03:00
profile-schema.ts Add some extra fields for profile (#2119) 2022-09-30 14:36:45 +03:00
project-environment-schema.ts Add changeRequestEnabled to project and project_environments (#2357) 2022-11-09 14:44:53 +02:00
project-schema.test.ts Add changeRequestEnabled to project and project_environments (#2357) 2022-11-09 14:44:53 +02:00
project-schema.ts Favorite project (#2569) 2022-11-30 13:41:53 +02:00
projects-schema.ts
proxy-client-schema.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
proxy-feature-schema.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
proxy-features-schema.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
proxy-metrics-schema.ts feat: embed proxy endpoints (#1926) 2022-08-16 15:33:33 +02:00
public-signup-schema.test.ts Feat/invite user (#2061) 2022-09-30 13:01:32 +02:00
public-signup-token-create-schema.ts Docs/public signup (#2070) 2022-10-10 16:12:11 +03:00
public-signup-token-schema.ts Docs/public signup (#2070) 2022-10-10 16:12:11 +03:00
public-signup-token-update-schema.ts Docs/public signup (#2070) 2022-10-10 16:12:11 +03:00
public-signup-tokens-schema.ts PublicSignupTokens (#2053) 2022-09-14 15:29:12 +03:00
requests-per-second-schema.ts perf: Simplify queries to prometheus (#2706) 2022-12-19 17:06:59 +01:00
requests-per-second-segmented-schema.ts task: Expose prometheus metrics (#2586) 2022-12-12 14:05:56 +01:00
reset-password-schema.ts
role-schema.test.ts
role-schema.ts
sdk-context-schema.test.ts feat: add playground API post endpoint (#1791) 2022-07-12 13:01:10 +02:00
sdk-context-schema.ts Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
search-events-schema.ts feat: add event search endpoint (#1893) 2022-08-09 16:14:50 +02:00
segment-schema.ts open api implementation - client features controller (#1745) 2022-06-30 12:54:14 +03:00
set-strategy-sort-order-schema.test.ts Strategy sort order endpoint (#1855) 2022-07-26 14:16:30 +02:00
set-strategy-sort-order-schema.ts Strategy sort order endpoint (#1855) 2022-07-26 14:16:30 +02:00
set-ui-config-schema.ts openapi: improve validation testing (#2058) 2022-09-23 15:02:09 +02:00
sort-order-schema.test.ts
sort-order-schema.ts
splash-schema.ts
state-schema.ts
strategies-schema.ts
strategy-schema.test.ts
strategy-schema.ts
tag-schema.ts
tag-type-schema.ts Feat: OpenAPI controller - Bootstrap UI (#1773) 2022-06-30 12:21:40 +00:00
tag-types-schema.test.ts refactor: remove bootstrap endpoint (#1900) 2022-08-09 15:58:27 +02:00
tag-types-schema.ts
tag-with-version-schema.ts
tags-schema.ts
token-user-schema.test.ts
token-user-schema.ts
ui-config-schema.test.ts
ui-config-schema.ts Maintenance mode for users (#2716) 2022-12-21 13:23:44 +02:00
update-api-token-schema.ts
update-feature-schema.ts
update-feature-strategy-schema.ts
update-tag-type-schema.ts
update-user-schema.ts fix: Make additionalProperties true (#1861) 2022-07-27 09:02:02 +02:00
upsert-context-field-schema.ts
upsert-strategy-schema.ts
user-schema.test.ts refactor: remove bootstrap endpoint (#1900) 2022-08-09 15:58:27 +02:00
user-schema.ts
users-groups-base-schema.test.ts Grouping access endpoing (#1858) 2022-07-26 11:39:55 +00:00
users-groups-base-schema.ts Grouping access endpoing (#1858) 2022-07-26 11:39:55 +00:00
users-schema.test.ts
users-schema.ts
users-search-schema.test.ts
users-search-schema.ts
validate-edge-tokens-schema.ts Fix validate-edge-tokens OpenAPI schema (#2055) 2022-09-12 15:51:52 +02:00
validate-password-schema.test.ts
validate-password-schema.ts
validate-tag-type-schema.ts
variant-schema.ts refactor: use the same variant schema for the admin and client APIs (#1882) 2022-08-08 16:21:57 +02:00
variants-schema.ts
version-schema.ts