AssemblyScript
AssemblyScript is TypeScript-like language that is compiled to WebAssembly (wasm)
asconfig.json
Validate
Check your file against this schema
Opens the validator with this schema already loaded. Paste your
asconfig.json and it validates in your browser — nothing is uploaded.
Reference
Fields
Generated directly from the schema, following local
$refs, to two levels of nesting.
| Field | Type | Description |
|---|---|---|
extends | string | — |
entries | array | — |
options | object | — |
options.optimize | boolean | Optimizes the module |
options.optimizeLevel | number | How much to focus on optimizing code |
options.shrinkLevel | number | How much to focus on shrinking code size |
options.converge | boolean | Re-optimizes until no further improvements can be made |
options.baseDir | string | — |
options.outFile | string | — |
options.textFile | string | — |
options.bindings | anyOf | Specified the bindings to generate |
options.sourceMap | anyOf | Enables source map generation. Optionally takes the URL |
options.runtime | anyOf | Specifies the runtime variant to include in the program |
options.noUnsafe | boolean | Disallows the use of unsafe features in user code |
options.debug | boolean | Enables debug information in emitted binaries |
options.noAssert | boolean | Replaces assertions with just their value without trapping |
options.noEmit | boolean | Performs compilation as usual but does not emit code |
options.importMemory | boolean | Imports the memory provided as 'env.memory' |
options.noExportMemory | boolean | Does not export the memory as 'memory' |
options.initialMemory | number | Sets the initial memory size in pages |
options.maximumMemory | number | Sets the maximum memory size in pages |
options.sharedMemory | number | Declare memory as shared. Requires maximumMemory |
options.zeroFilledMemory | boolean | Assume that imported memory is zero filled. Requires importMemory |
options.memoryBase | number | Sets the start offset of compiler-generated static memory |
options.importTable | boolean | Imports the function table provided as 'env.table' |
options.exportTable | boolean | Exports the function table as 'table' |
options.exportStart | string | — |
options.lib | anyOf | — |
options.path | anyOf | — |
options.use | anyOf | — |
options.trapMode | enum | Sets the trap mode to use one of: "allow", "clamp", "js" |
options.runPasses | anyOf | — |
options.noValidate | boolean | Skips validating the module using Binaryen |
options.enable | anyOf | Enables WebAssembly features that are disabled by default |
options.disable | anyOf | Disables WebAssembly features that are enabled by default |
options.transform | anyOf | — |
options.pedantic | boolean | Make yourself sad for no good reason |
options.stats | boolean | Prints measuring information on I/O and compile times |
options.noColors | boolean | Disables terminal colors |
options.exportRuntime | boolean | Exports the runtime helpers (__new, __collect etc.) |
options.stackSize | number | Exports the runtime helpers (__new, __collect etc.) |
options.lowMemoryLimit | number | Enforces very low (<64k) memory constraints |
options.tableBase | number | Sets the start offset of emitted table elements |
options.wasm | string | — |
targets | object | — |
Audit
What we found in this schema
- Declared draft: draft-07
- Validates cleanly against its own meta-schema.
- 45 properties, 91% carrying a description, max nesting depth 8.
Standards
Specification sections for the keywords in this schema
| Keyword | Document | Section |
|---|---|---|
$id | JSON Schema Core, draft 2020-12 | §8.2.1 — The "$id" Keyword |
$ref | JSON Schema Core, draft 2020-12 | §8.2.3.1 — Direct References with "$ref" |
$schema | JSON Schema Core, draft 2020-12 | §8.1.1 — "$schema" |
additionalProperties | JSON Schema Core, draft 2020-12 | §10.3.2.3 — "additionalProperties" |
anyOf | JSON Schema Core, draft 2020-12 | §10.2.1.2 — "anyOf" |
description | JSON Schema Validation, draft 2020-12 | §9.1 — "title" and "description" |
enum | JSON Schema Validation, draft 2020-12 | §6.1.2 — "enum" |
items | JSON Schema Core, draft 2020-12 | §10.3.1.2 — "items" |
maximum | JSON Schema Validation, draft 2020-12 | §6.2.2 — "maximum" |
minLength | JSON Schema Validation, draft 2020-12 | §6.3.2 — "minLength" |
minimum | JSON Schema Validation, draft 2020-12 | §6.2.4 — "minimum" |
properties | JSON Schema Core, draft 2020-12 | §10.3.2.1 — "properties" |
type | JSON Schema Validation, draft 2020-12 | §6.1.1 — "type" |
uniqueItems | JSON Schema Validation, draft 2020-12 | §6.4.3 — "uniqueItems" |
Documents
- JSON Schema Core, draft 2020-12 — JSON Schema: A Media Type for Describing JSON Documents, A. Wright, H. Andrews, B. Hutton, G. Dennis, Eds., 2022. draft-bhutton-json-schema-01. An expired Internet-Draft with no formal standing in the IETF standards process; it is nonetheless the specification of record for JSON Schema 2020-12, published by json-schema.org.
- JSON Schema Validation, draft 2020-12 — JSON Schema Validation: A Vocabulary for Structural Validation of JSON, A. Wright, H. Andrews, B. Hutton, Eds., 2022.
- RFC 8259 (STD 90) — The JavaScript Object Notation (JSON) Data Interchange Format, T. Bray, Ed., 2017. The format a schema describes.
- RFC 6901 — JavaScript Object Notation (JSON) Pointer. Defines the pointer syntax used by $ref fragments and the ~0 / ~1 escapes.
Source
Attribution
This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.