Skip to content

Conversation

@Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Oct 21, 2025

Ensures AppliesTo is (de)serialized in a normalized fashion.

[
  {
    "type": "stack",
    "sub_type": "stack",
    "lifecycle": "ga",
    "version": "9999.9999.9999"
  }
]

This is now mapped as nested and version is mapped to version type.

"applies_to" : {
  "type" : "nested",
  "properties" : {
    "type" : { "type" : "keyword" },
    "sub-type" : { "type" : "keyword" },
    "lifecycle" : { "type" : "keyword" },
     "version" : { "type" : "version" }
  }
},

We also implement a ToString() for all of AppliesTo related types so we can cache bust the sync to semantic index if only the applies to changes.

@Mpdreamz Mpdreamz requested a review from a team as a code owner October 21, 2025 10:30
@Mpdreamz Mpdreamz requested a review from reakaleek October 21, 2025 10:30
@Mpdreamz Mpdreamz added the fix label Oct 21, 2025
@Mpdreamz Mpdreamz self-assigned this Oct 21, 2025
@Mpdreamz Mpdreamz changed the title feature/applicable to json serializer Add json serialization routine for applies_to. Oct 21, 2025
@Mpdreamz Mpdreamz changed the title Add json serialization routine for applies_to. Add json serialization routine for applies_to Oct 21, 2025
@Mpdreamz Mpdreamz merged commit 20eedb5 into main Oct 21, 2025
22 checks passed
@Mpdreamz Mpdreamz deleted the feature/applicable-to-json-serializer branch October 21, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants