torc 0.23.1

Workflow management system
# This file was generated by the Julia OpenAPI Code Generator
# Do not modify this file directly. Modify the OpenAPI specification instead.


@doc raw"""ActiveTaskResponse
Wrapper for `GET /workflows/{id}/active_task` so the response always has a JSON body, even when the workflow currently has no active async task. The `task` field is the active task for this workflow, or null if none is in-flight.

    ActiveTaskResponse(;
        task=nothing,
    )

    - task::TaskModel
"""
Base.@kwdef mutable struct ActiveTaskResponse <: OpenAPI.APIModel
    task = nothing # spec type: Union{ Nothing, TaskModel }

    function ActiveTaskResponse(task, )
        o = new(task, )
        OpenAPI.validate_properties(o)
        return o
    end
end # type ActiveTaskResponse

const _property_types_ActiveTaskResponse = Dict{Symbol,String}(Symbol("task")=>"TaskModel", )
OpenAPI.property_type(::Type{ ActiveTaskResponse }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_ActiveTaskResponse[name]))}

function OpenAPI.check_required(o::ActiveTaskResponse)
    true
end

function OpenAPI.validate_properties(o::ActiveTaskResponse)
    OpenAPI.validate_property(ActiveTaskResponse, Symbol("task"), o.task)
end

function OpenAPI.validate_property(::Type{ ActiveTaskResponse }, name::Symbol, val)

end