/* Options: Date: 2026-08-02 02:50:01 SwiftVersion: 6.0 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: SetWidgetConfigurationSchemaMigration.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/widget/configurationschema/{Version}/migration", "PUT") // @ApiResponse(Description="Returned if Version doesn't exist, Version-1 doesn't exist, Patch isn't a well-formed RFC 6902 document, references a path unknown to the previous version's schema, or (when the previous version has a DefaultConfiguration) doesn't produce a document that validates against this Version's Schema", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not a SuperAdmin", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") public class SetWidgetConfigurationSchemaMigration : IReturn, Codable { public typealias Return = WidgetConfigurationSchemaResponse /** * The schema version this patch produces. */ // @ApiMember(Description="The schema version this patch produces.", IsRequired=true, ParameterType="path") public var version:Int? /** * JSON Patch (RFC 6902) document transforming a Version-1 shaped Configuration into a Version-shaped one, as a JSON string. */ // @ApiMember(Description="JSON Patch (RFC 6902) document transforming a Version-1 shaped Configuration into a Version-shaped one, as a JSON string.", IsRequired=true) public var patch:String? required public init(){} } public class WidgetConfigurationSchemaResponse : Codable { public var id:Int? public var version:Int? public var schema:[String:String] = [:] public var defaultConfiguration:String? public var migrationFromPreviousVersion:String? public var createdDate:Date? public var responseStatus:ResponseStatus? required public init(){} }