malli 2025-05-22

Hey there! My OpenAPI 3.1.0 spec generated from Malli is having some validation errors… My components all have a namespace prefix from the Malli registry like this:

components:
  schemas:
    lohnica.schema.validation/variable-data:
      type: object
      additionalProperties:
        type: object
        properties:
And this causes the following error with the spec validation (http://editor.swagger.io):
Semantic error at components.schemas.lohnica.schema.validation/variable-data
Component names can only contain the characters A-Z a-z 0-9 - . _
Is this a know problem? (Couldn’t find any related issue on Github) And is there a workaround for that? Thanks a lot in advance!

Thanks for the quick response! I was sure i was already on the latest version, sorry for that. Now after the update everything is working flawlessly, no validation errors any more! 👍

glad to know our fix was the right one for you 😊

Otherwise I'm guessing reitit.openapi needs a similar update.

yeah, this should get fixed by upgrading malli – no need to upgrade reitit

I just want to state that we were following the OAS 3.1.0 standard, which allows /, but for some reason the official json-schema (which the validators use) only allows [-._A-Za-z0-9] 😠

But malli 0.18.0 will format this as lohnica.schema.validation.variable-data