@drincs/pixi-vn-ink 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { C as CompileSharedType } from './types-B7f5EzP5.cjs';
1
+ import { C as CompileSharedType } from './types-C31N1m1a.cjs';
2
2
 
3
3
  /** A character id, or any object carrying one (e.g. a `CharacterInterface` / `RegisteredCharacters.values()`). */
4
4
  type CharacterIdSource = string | {
@@ -1,4 +1,4 @@
1
- import { C as CompileSharedType } from './types-B7f5EzP5.js';
1
+ import { C as CompileSharedType } from './types-C31N1m1a.js';
2
2
 
3
3
  /** A character id, or any object carrying one (e.g. a `CharacterInterface` / `RegisteredCharacters.values()`). */
4
4
  type CharacterIdSource = string | {
@@ -105,5 +105,31 @@ interface HashtagCommandOccurrence {
105
105
  */
106
106
  tokens: string[];
107
107
  }
108
+ /**
109
+ * Represents a single JSON Schema mismatch found while validating an exported
110
+ * `PixiVNJson` payload, as reported by {@link InkCompiler.validateAgainstJsonSchema}.
111
+ */
112
+ interface SchemaValidationIssue {
113
+ /**
114
+ * JSON Pointer (Ajv's `instancePath`) to the invalid value, or `"(root)"`
115
+ * when the error applies to the whole document.
116
+ */
117
+ instancePath: string;
118
+ /**
119
+ * Name of the invalid field/element — e.g. `"x"` when `x` was assigned a
120
+ * string but the schema only accepts a number. For a missing required
121
+ * property, this is the name of that property.
122
+ */
123
+ element: string;
124
+ /**
125
+ * Human-readable reason the value doesn't match the schema.
126
+ */
127
+ message: string;
128
+ /**
129
+ * Nearest ink source line (a converted operation's `$origin`) that produced
130
+ * the invalid value, when one could be traced.
131
+ */
132
+ origin?: string;
133
+ }
108
134
 
109
- export type { CompileSharedType as C, DivertOccurrence as D, HashtagCommandOccurrence as H, IssueType as I, InkHashtagCommandInfo as a, InkValidationInfo as b };
135
+ export type { CompileSharedType as C, DivertOccurrence as D, HashtagCommandOccurrence as H, IssueType as I, SchemaValidationIssue as S, InkHashtagCommandInfo as a, InkValidationInfo as b };
@@ -105,5 +105,31 @@ interface HashtagCommandOccurrence {
105
105
  */
106
106
  tokens: string[];
107
107
  }
108
+ /**
109
+ * Represents a single JSON Schema mismatch found while validating an exported
110
+ * `PixiVNJson` payload, as reported by {@link InkCompiler.validateAgainstJsonSchema}.
111
+ */
112
+ interface SchemaValidationIssue {
113
+ /**
114
+ * JSON Pointer (Ajv's `instancePath`) to the invalid value, or `"(root)"`
115
+ * when the error applies to the whole document.
116
+ */
117
+ instancePath: string;
118
+ /**
119
+ * Name of the invalid field/element — e.g. `"x"` when `x` was assigned a
120
+ * string but the schema only accepts a number. For a missing required
121
+ * property, this is the name of that property.
122
+ */
123
+ element: string;
124
+ /**
125
+ * Human-readable reason the value doesn't match the schema.
126
+ */
127
+ message: string;
128
+ /**
129
+ * Nearest ink source line (a converted operation's `$origin`) that produced
130
+ * the invalid value, when one could be traced.
131
+ */
132
+ origin?: string;
133
+ }
108
134
 
109
- export type { CompileSharedType as C, DivertOccurrence as D, HashtagCommandOccurrence as H, IssueType as I, InkHashtagCommandInfo as a, InkValidationInfo as b };
135
+ export type { CompileSharedType as C, DivertOccurrence as D, HashtagCommandOccurrence as H, IssueType as I, SchemaValidationIssue as S, InkHashtagCommandInfo as a, InkValidationInfo as b };