-
Notifications
You must be signed in to change notification settings - Fork 224
Drive DCDD from server specifications #5276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success2015 tests passing in 905 suites. Report generated by 🧪jest coverage report action from 7be6815 |
|
We detected some changes at packages/*/src and there are no updates in the .changeset. |
d730595 to
b8f4b35
Compare
ef6c4b7 to
ae8f1b5
Compare
b8f4b35 to
4ae7fdf
Compare
ae8f1b5 to
13991f2
Compare
4ae7fdf to
8966797
Compare
13991f2 to
61faa92
Compare
8966797 to
63ecde0
Compare
isaacroldan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎩 and 👌
61faa92 to
d92ad26
Compare
63ecde0 to
4057215
Compare
d92ad26 to
4007c75
Compare
4057215 to
7be6815
Compare
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/public/node/json-schema.d.ts@@ -1,5 +1,6 @@
import { ParseConfigurationResult } from './schema.js';
import { ErrorObject, SchemaObject } from 'ajv';
+export type HandleInvalidAdditionalProperties = 'strip' | 'fail';
type AjvError = ErrorObject<string, {
[key: string]: unknown;
}>;
@@ -19,10 +20,11 @@ export declare function normaliseJsonSchema(schema: string): Promise<SchemaObjec
*
* @param subject - The object to validate.
* @param schema - The JSON schema to validate against.
+ * @param handleInvalidAdditionalProperties - Whether to strip or fail on invalid additional properties.
* @param identifier - The identifier of the schema being validated, used to cache the validator.
* @returns The result of the validation. If the state is 'error', the errors will be in a zod-like format.
*/
-export declare function jsonSchemaValidate(subject: object, schema: SchemaObject, identifier: string): ParseConfigurationResult<unknown> & {
+export declare function jsonSchemaValidate(subject: object, schema: SchemaObject, handleInvalidAdditionalProperties: HandleInvalidAdditionalProperties, identifier?: string): ParseConfigurationResult<unknown> & {
rawErrors?: AjvError[];
};
export {};
\ No newline at end of file
|

Closes https://github.com/Shopify/develop-app-storage/issues/18
WHY are these changes introduced?
Removes the custom data specification and improves handling of remote extension specifications with different UID strategies. As DCDD is an app.toml managed module, we need to be able to indicate that it's UID strategy is
singleWHAT is this pull request doing?
uidIsClientProvidedflagHow to test your changes?
[metaobjects.author.fields]\nbirthday="date", no failureMeasuring impact
Checklist