5. Validation and preview
Level: diagnosis. The two tools that tell whether a configuration is correct before it reaches the apps (validation as you write, and the Tester) and the list of error messages with their cause. The previous page is Resolution rules, the next one is Recipes.
Validation as you write
While you write, the editor checks the document every time you pause for a moment, and sums up its state in a badge next to the app's name:
| Badge | Meaning |
|---|---|
Invalid JSON | The text is not JSON, or it is not an object. No other check is possible: this is what you fix first. |
Validating… | Check in progress. |
N issues | The document is valid JSON but cannot be published. The list is under the editor (N validation issues), with the exact path of every field. |
Valid (green) | No problems: it can be published. |
The check is exactly the one of publishing. It is not an approximation made by the browser: the editor asks Squiddy for the same check Publish will make, unknown keys included. If the badge is green, publishing will not be refused because of the content.
But it does not block saving: a draft with ten problems is saved without objection (page 2). This is where the badge earns its place: if you save and close ignoring it, the problem waits for you at the next attempt to publish, maybe under pressure.
The problems are listed with their path: api[0].serverSettings[1], segments["beta"], languages.defaultLang. Numbers count from zero, so api[0] is the first block of the api section (in the Form, API block 1).
Warnings
Under the list of problems a yellow warning may appear. A warning is not a problem: it does not count in the badge and does not block publishing, because it describes a legitimate shape that is usually an oversight. It applies to both the JSON tab and the Form tab.
| Warning | Cause | Remedy |
|---|---|---|
Languages no API block serves | One or more languages of the dictionary do not appear in languagesSupported of any API block, so no app receives them. The comparison is letter by letter: "IT" does not serve "it". It does not appear if the configuration has no API blocks, because the problem at least one api block is required is already there. | Add the language to the Languages served of at least one block, or leave it as it is if it is a translation prepared and not switched on yet. |
The messages, one by one
The messages are written as the dashboard in English shows them, after the path of the field. The names of the fields (configVersion, apiVersion, langList…) stay as they are written in the JSON.
Structure
| Message | Cause | Remedy |
|---|---|---|
The configuration body must be a JSON object. (title Invalid JSON) | The text is JSON but not an object: an array, a value. | The document must be an object, between { and }. |
JSON syntax error at line N, column M. (title Invalid JSON) | The text is not JSON: one comma too many, a missing bracket, an unclosed quote, text after the final bracket (typically a double paste). Line and column are those of the editor's margin and point to the first character out of place, or to the end of the text if the text ends before closing; they are the same in every browser. If it cannot find them (a document nested deeper than 512 levels) it says The text is not valid JSON: check commas, quotes and brackets. | Fix the point shown. |
<field>: must be a string (or an integer, a number, a boolean (true or false), an array, an object) | A value has a JSON type other than the one the schema wants there: configVersion as a number, api as an object instead of an array, min as a number instead of a string, rules as an array of strings instead of an array of arrays. The field is the exact path of the value (api[0].min, api[1].rules[1][0], segments["vip"]). | Fix the type. Versions are strings: "min": "2024.01.01", not 2024.01.01. |
unknown field "X" is not part of the configuration schema and would be ignored | A key the schema does not know: appUpdates for appUpdate, typ for type, Rules for rules. | Fix the name. It is a valuable check: without it, that key would be silently ignored and the configuration would look finished. |
Root and versions
| Message | Cause | Remedy |
|---|---|---|
api: at least one api block is required: a configuration without one cannot be served to any client | There is no api block: it is the initial template of a new app, or they were all removed. Without one, every app would receive the 5001 error. | Add an API block (from the Form, Add API block, or from the JSON). The block the Form adds is already valid: all versions, all apps, path mode, apiVersion 1.0 and an empty base URL, to be corrected with the real values. |
min version "…" is not a valid version / max version … | The value, once the dots are removed, is not a number: empty string, missing field, "1.0.0-beta", "latest". | Use YYYY.MM.DD. “All versions” = 0000.00.00 … 9999.99.99. |
min version "…" is greater than max version "…" | Inverted range. It is often the remove-the-dots comparison that gives you away: 1.10.0 (1100) is greater than 1.9.0 (190). | Check again with the table on page 3. |
api blocks
| Message | Cause | Remedy |
|---|---|---|
apiVersion is required | Empty or missing field. | Fill it in: without it, the app that receives this block receives the 5001 error instead. |
serverMode is required | Empty or missing field. | path, get, post or x-www-form-urlencoded. |
key, value, type and action are all required on serverSettings[i] | A settings row is incomplete. | The four keys are all needed, always. |
appType "X" is not lowercase and can never match (the data plane lowercases appType before comparing) | "iOS", "Android", "ALL". | Lowercase. The app's request is lowercased before the comparison, so a value with capitals is dead configuration. |
appMode "X" is not lowercase and can never match (the data plane lowercases appMode before comparing) | "Release", "DEBUG". | Lowercase. |
rule set is empty and can never be satisfied | A rule set []. | Remove it, or fill it in. |
rule set contains an empty value | A value "" inside a set. | Remove the empty value. |
percentage is required when a rollout is declared | rollout present without percentage. | Give it; 0 is legitimate. |
percentage N is out of range (expected 0 to 100) | Off the scale. | 0–100. |
key "X" is not a known bucketing key (expected "entity", "app", or omitted for "entity") | A value other than entity / app. | One of the two, or leave the field out (it counts as entity). |
segment "X" is not defined in the top-level segments, so this block would never match | The block calls a segment that does not exist: a typo, or a renamed segment. | Fix the name or define the segment. |
refreshInterval N is out of range (expected 0 to turn the periodic check off, or 30 to 86400 seconds) | The periodic check asked for is too frequent (under 30 seconds), longer than a day, or negative. Under the Periodic check (seconds) field of the Form there is also “Use 0 to turn it off, or a value from 30 to 86400 seconds.” | 0 or nothing to turn it off, otherwise from 30 to 86400 (page 3). |
Localized messages
| Message | Cause | Remedy |
|---|---|---|
language "X" is not lowercase and can never match (the data plane lowercases appLanguage before comparing) | "IT", "En" in msg[i].language. | Lowercase, or default. |
Segments
| Message | Cause | Remedy |
|---|---|---|
segment defines no rule sets, so it would match every request instead of narrowing one | A segment defined as []. | Define at least one set, or delete the segment. |
segment name is blank and cannot be referenced meaningfully | An empty key in segments. | Give it a name. |
Translations
| Message | Cause | Remedy |
|---|---|---|
langList is present but defaultLang is not set | There are translations but no default language. | Choose the Default language (defaultLang). |
defaultLang "X" is set but langList is empty | There is a default language but no dictionary. | Add the translations, or empty defaultLang. |
defaultLang "X" is not present in langList | The default language is not among the columns of the grid. | Add it, or choose a language that is there. |
The traps validation does not see
These are the cases where the document is valid and can be published, and the behavior is wrong anyway. The only defense is the Tester, plus this list.
| Trap | What happens |
|---|---|
Empty appTypes or appModes ([], or a missing field) | The block matches nobody. It is not a validation error, but the block does not exist for any app. In the Form, under the empty field, “Empty matches nobody: this block would never be served.” says so. It needs the explicit list, or all. |
Order of the api blocks | The first that matches wins: a general block put before a specific one makes the specific one unreachable. No check can guess the intention. |
Order of the appUpdate / inFoPoint blocks | The last one wins. Thinking of it the way api works is the most common cause of “the wrong message”. |
| No fallback block | An app outside every range receives the 5001 error, not an empty answer. There should always be an all / 0000.00.00–9999.99.99 block at the end. |
baseUrl missing or without a trailing slash | No check requires it. Missing: the app receives an empty address. Without the trailing / in path mode: the composed URL is https://api.example.com3.18/. |
languagesSupported missing | The app receives no translations, however complete the dictionary is. From the Form it does not happen (the grid adds every language to all the blocks), and if a language is served by no block the editor says so with the Languages no API block serves warning. It stays a trap for the chosen block: a language served by another block does not reach the apps of this one. |
msg without a default row | If the block matches and the app's language has no row, the request fails (5001). A badly written maintenance block stops the apps from starting. |
A msg row left empty | A row added in the Form and left empty does not fall back on default: the apps in that language receive the update or the maintenance with an empty title and text. The same goes for an empty default row, for the languages without a row. If you want the default text in that language, remove the row. |
Percentage rollout without entityId from the app | The choice is made on the appId: the whole app is inside or outside. A rollout at 10% behaves like 0% or 100%. |
| Variable-width versions | 1.9.0 (190) < 1.10.0 (1100): a range that looks right includes or excludes versions at random. |
| Configuration copied between environments | Nobody checks that the production baseUrl does not point to staging. The Tester shows the address the app will receive: look at it. |
The Tester
The Tester tab makes the same choice the data plane makes, on a context you describe, and shows the answer the app would receive. It publishes nothing and changes nothing.
| Field | Required | Notes |
|---|---|---|
| App version | yes | The appVersion of the simulated app (2026.06.19). |
| App type | yes | ios, android, tvos, web, desktop. |
| App mode | yes | release, debug. |
| Language | yes | The language code (it, en): it picks the localized message. |
| Custom params | no | The labels the app would send in customParams, for rules and segments. Write a parameter and press Enter, one at a time. |
| Entity ID | no | The entityId of the percentage rollout. Filling it in answers “what does this installation receive”. Empty = an app that does not send it. |
| Version | — | Which version to try: by default Working version (current draft), or a version from the history (v7 (published), v6 (draft)). |
Run preview becomes active when the four required fields are filled in.
The default on the working version is the reason why the Tester is used before publishing: it tries the draft. By choosing a version from the history you answer instead “what are the apps receiving now” (choosing the published one) or “what were they receiving before”.
Below, the Resolved output is the answer in JSON: serverApi with the address already composed, appUpdate and infoPoint if they match, languages if any are left after the language filter. The sections that are missing are sections the app would not receive. Next to the title, one label gives the configVersion (config v1.0.4) and another the periodic check of the chosen block: Periodic check every N s, or Periodic check off when the block has no refreshInterval or has it at 0.
How to use it in practice. Not a single context, but those that tell the cases apart: the useful minimum is one round on every platform served, on the oldest version still in the field and on the current one, with and without the customParams you are filtering on. For a percentage rollout, two or three real entityId values, taken from test installations, are worth more than ten made up.
If the Tester shows an error (Preview failed) instead of an answer, you have just spared your apps from it:
| What you read | What it means | What the app would receive |
|---|---|---|
| “No configuration exists for this app (or the selected version). Save a draft first, then try again.” | There is no saved version to try. | The 5003 error, configuration not found. |
| A message that ends with “is incomplete” and names the incomplete part | No api block matches, or the chosen block is incomplete, or in the chosen appUpdate/inFoPoint block there is neither a row in the app's language nor a default row. A row with an empty text is not an error: it arrives empty. | The 5001 error, configuration that cannot be resolved. |
| “Some of the context values are not valid. Check the form and try again.” | A field of the context is badly written, for example an App version that without the dots is not a number. | The 5002 error, invalid request. |
Checklist before publishing
- The badge is green.
- You ran in the Tester the contexts that matter: every platform served, the oldest version in the field, the current one, with and without the
customParamsyou filter on. - In the Tester's output the
baseUrlis the one of the right environment, and composed as expected. - The last
apiblock is a fallback block that matches everybody. - If you touched
appUpdateorinFoPoint: the order is the right one (the last one wins), every block has thedefaultrow, and the empty rows are intended: they arrive empty to the apps of that language. - If you touched the translations: there is no Languages no API block serves warning, and the Languages served of the block that will be chosen are the ones you expect.
- If you are publishing in production: you looked in the History tab at the comparison with the version published now.