mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Merge pull request #6838 from crobibero/openapi-nullable
Add nullable dictionary openapi mapping
This commit is contained in:
commit
2f92ee374a
@ -416,6 +416,18 @@ namespace Jellyfin.Server.Extensions
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Support dictionary with nullable string value.
|
||||||
|
options.MapType<Dictionary<string, string?>>(() =>
|
||||||
|
new OpenApiSchema
|
||||||
|
{
|
||||||
|
Type = "object",
|
||||||
|
AdditionalProperties = new OpenApiSchema
|
||||||
|
{
|
||||||
|
Type = "string",
|
||||||
|
Nullable = true
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user