An entity a new step of the package uses as it was goes into createdEntityIds as well as usedExistingEntityIds, as at install, so deleting the package removes the metadata entries it added to that entity.
A gateway package writes ${mqtt.host} and ${mqtt.port} into its docker-compose. The install form now
shows the MQTT host and port fields for every GATEWAY_* method, as it does for DIRECT_MQTT, with the
wording and the help about the gateway: it runs in Docker, so localhost means its own container or
machine, and host.docker.internal is the address when it runs on the ThingsBoard machine.
IOTHUB-84
IoT Hub: the default TTN/TTI converter takes decoded_payload as it is, with the model from tbVersionIds and attributes listed in the integration metadata
The key is removed whenever the decoded payload has it, and it names a model only when it is an object, so
tbVersionIds: null or a list gives the same telemetry in JS and TBEL. The test of a tbVersionIds that is not an
object covers a text, null and a list. The test of the renamed profile lists temperature, which is in the history
record and in the latest values, so it fails if a listed key leaves a history record.
attributes.<brand_id>-<model_id> in the integration metadata (comma-separated, written by the device package's
INTEGRATION step, like profile.*) lists the keys of decoded_payload that are device information and settings: they
become attributes, the rest stays telemetry. No list, everything stays telemetry. The model comes from version_ids,
else from tbVersionIds, which now also gives the brandId and modelId attributes, as version_ids does through the
integration. Tests: the listed keys of a formatter device, the list of a Repository device by its model with a renamed
profile (history records stay telemetry), the list of another model changes nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
springdoc infers a parameter type from its Java type only when
@Parameter(schema = @Schema(...)) sets neither type nor implementation;
otherwise it falls back to string. Fix int and long parameters globally
in SwaggerConfiguration instead of declaring the type per endpoint.
Lansitec devices are decoded by our payload formatter in The Things Stack (Custom Javascript formatter on the end device),
so the Lansitec block leaves the TBEL and JS converters, with its test and uplinks. A device that is not in the LoRaWAN
Device Repository has no version_ids: its formatter can add tbVersionIds { brand_id, model_id } to decoded_payload, the
converter takes the profile <brand_id>-<model_id> from it (or the name in the integration metadata), and drops the field
from the telemetry. version_ids come first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The schema was built with Schema.type("integer"), which OpenAPI 3.1 does
not write, so it had no type. Generated clients treated the codes as
strings, while the server sends numbers.
entityType carries an EntityType or an AliasEntityType name
(CURRENT_USER, ...), so it is a string; id is required only for an
EntityType, and aliasEntityType is never written. A filter with an alias
did not fit the old schema. AliasEntityType is registered explicitly,
since no schema references it any more. AliasEntityIdTest pins the wire
format.
TbAlarmService.assign and unassign return AlarmInfo, and Jackson already
wrote it, but the endpoints were documented as Alarm, so generated
clients dropped originatorName, assignee and the other AlarmInfo fields.
The parameters are int, but their @Schema(minimum = ...) had no type, so
springdoc documented them as strings and generated clients took
String pageSize, String page. State type integer, format int32, as every
other paged endpoint does. The page minimum of getEdgesByEntityGroupId
was 1; pages start at 0.