Skip to content

struct_to_gts_schema to ensure if GTS string is valid #47

@Artifizer

Description

@Artifizer

Check the pattern like this. The struct_to_gts_schema must validate the GTS format, the example below is compilable but it has wrong GTS id (5 tokens in the right segment, not 4)

#[struct_to_gts_schema(
    dir_path = "schemas",
    base = BaseModkitPluginV1,
    schema_id = "gts.x.core.modkit.plugin.v1~x.core.license_enforcer.integration.plugin.v1~",
    description = "License Enforcer platform integration plugin specification",
    properties = ""
)]
pub struct LicensePlatformPluginSpecV1;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions