Per-application JSON Schema reality
BIG-IP AS3 3.50 (Nov-2024) introduces a per-application deployment model.
It allows you to deploy only selected applications from a tenant without modifying the other applications already deployed in that tenant.
Sounds great. But there was one small problem:
There was no JSON Schema for validating per-application declarations.
The standard AS3 JSON Schema could not be used because a per-application declaration has a different structure. It does not contain the usual AS3, ADC, and Tenant wrapper classes. But structure starting on Application level is the same!
Starting with BIG-IP AS3 3.56 (Feb-2026), F5 finally ships a separate, consolidated schema specifically for validating per-application declarations.
Thanks, F5! ![]()
But now we have another problem…
If you work with AS3 automation, you can have multiple declaration files in your repository.
Some are full/tenant-based AS3 declarations:
f5as3-ltm_service1.tenant.as3.json
Others are per-application declarations:
f5as3-ltm_service2.app.as3.json
So how do we tell the editor which schema to use?
One simple approach is to use a different filename suffix and associate each suffix with the appropriate schema:
-
*.tenant.as3.json→as3-schema.json -
*.app.as3.json→per-app-schema.json
This works perfectly from an automation perspective.
But I also want the same validation inside my IDE.
Visual Studio Code
I don’t generally like Microsoft products, but VS Code has been my favorite IDE for years.
And this is where JSON Schema support becomes really useful.
With the right VS Code configuration, we can make the editor automatically select the correct schema based on the filename:
{
"settings": {
"json.schemas": [
{
"fileMatch": [
"*.app.as3.json"
],
"url": "./path-to-json-schema/per-app-schema.json"
},
{
"fileMatch": [
"*.tenant.as3.json"
],
"url": "./path-to-json-schema/as3-schema.json"
}
]
}
}
And suddenly writing or validating AS3 declarations becomes much nicer.
F5 JSON Schema - part 2
It would be nice to have one JSON Schema that could validate both AS3 and per-application declarations.
My question to F5 is:
Why does it still not exist?
Until then, I’m using a small workaround.
I created a JSON Schema wrapper called as3-or-per-app-schema.json::
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "urn:uuid:as3-or-per-app-schema",
"title": "AS3 or Per-App Schema",
"description": "Validates against AS3 schema when class is AS3, otherwise per-app schema",
"if": {
"required": ["class"],
"properties": {
"class": {
"const": "AS3"
}
}
},
"then": {
"$ref": "./as3-schema.json"
},
"else": {
"$ref": "./per-app-schema.json"
}
}
The idea is simple:
-
If the declaration contains
"class": "AS3", use the standard AS3 schema. -
Otherwise, use the per-application schema.
This allows me to use one VS Code schema association for both types of declaration files:
{
"settings": {
"json.schemas": [
{
"fileMatch": [
"*.as3.json"
],
"url": "./path-to-json-schema/as3-or-per-app-schema.json"
}
]
}
}
Now VS Code automatically selects the appropriate schema based on the content of the declaration.
No need to distinguish between *.tenant.as3.json and *.app.as3.json. The editor handles both.
Tested on
JSON Schema files delivered with F5 BIG-IP AS3 v3.57.0.
Notes and Limitations
This is not an official F5 solution.
It’s just a small workaround that allows a single VS Code schema association to validate both standard AS3 and per-application declarations. It’s possible to use also for CI/CD pipelines for input automation.
Hopefully, a future AS3 release will provide a consolidated schema that makes this workaround unnecessary.