-
When I'm running the generator on https://ll.thespacedevs.com/2.2.0/schema (no option flags supplied to the binary), it will for the components Any input would be grateful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@azatoth # generated by datamodel-codegen:
# filename: Launch Library (v2.2.0).yaml
# timestamp: 2023-01-18T13:01:37+00:00
from __future__ import annotations
from datetime import date, datetime
from typing import List, Optional
from uuid import UUID
from pydantic import AnyUrl, BaseModel, Field, conint, constr
class Agency(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
featured: Optional[bool] = None
type: Optional[constr(max_length=255)] = None
country_code: Optional[constr(max_length=1048)] = None
abbrev: Optional[constr(max_length=255)] = None
description: Optional[constr(max_length=2048)] = None
administrator: Optional[constr(max_length=200)] = None
founding_year: Optional[constr(max_length=20)] = None
launchers: Optional[constr(max_length=500)] = None
spacecraft: Optional[constr(max_length=500)] = None
parent: str
image_url: Optional[AnyUrl] = None
class AgencyList(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
abbrev: Optional[constr(max_length=255)] = None
class AgencySerializerDetailedCommon(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
featured: Optional[bool] = None
type: Optional[constr(max_length=255)] = None
country_code: Optional[constr(max_length=1048)] = None
abbrev: Optional[constr(max_length=255)] = None
description: Optional[constr(max_length=2048)] = None
administrator: Optional[constr(max_length=200)] = None
founding_year: Optional[constr(max_length=20)] = None
launchers: Optional[constr(max_length=500)] = None
spacecraft: Optional[constr(max_length=500)] = None
launch_library_url: str
total_launch_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
consecutive_successful_launches: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
successful_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
failed_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
pending_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
consecutive_successful_landings: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
successful_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
failed_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
attempted_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
info_url: Optional[AnyUrl] = None
wiki_url: Optional[AnyUrl] = None
logo_url: Optional[AnyUrl] = None
image_url: Optional[AnyUrl] = None
nation_url: Optional[AnyUrl] = None
class AgencySerializerMini(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
type: Optional[constr(max_length=255)] = None
class AgencyType(BaseModel):
id: conint(ge=-2147483648, le=2147483647)
name: Optional[constr(max_length=255)] = None
class AstronautRole(BaseModel):
id: int
role: constr(max_length=255)
priority: Optional[conint(ge=-2147483648, le=2147483647)] = None
class AstronautStatus(BaseModel):
id: int
name: constr(max_length=255)
class AstronautType(BaseModel):
id: int
name: constr(max_length=255)
class EventType(BaseModel):
id: conint(ge=-2147483648, le=2147483647)
name: Optional[constr(max_length=255)] = None
class ExpeditionSerializerForSpacestation(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
start: datetime
end: Optional[datetime] = None
class FirstStageType(BaseModel):
id: conint(ge=-2147483648, le=2147483647)
name: Optional[constr(max_length=50)] = None
class InfoURL(BaseModel):
priority: Optional[conint(ge=-2147483648, le=2147483647)] = None
title: Optional[constr(max_length=200)] = None
description: Optional[constr(max_length=350)] = None
feature_image: Optional[AnyUrl] = None
url: AnyUrl
class LandingType(BaseModel):
id: int
name: Optional[constr(max_length=255)] = None
abbrev: Optional[constr(max_length=255)] = None
description: Optional[constr(max_length=2048)] = None
class LaunchSerializerMini(BaseModel):
id: UUID
name: Optional[constr(max_length=2048)] = None
class LaunchStatus(BaseModel):
id: conint(ge=-2147483648, le=2147483647)
name: str
abbrev: Optional[constr(max_length=255)] = None
description: Optional[constr(max_length=2048)] = None
class LauncherConfigDetailSerializerForAgency(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
description: Optional[constr(max_length=2048)] = None
family: Optional[constr(max_length=200)] = None
full_name: Optional[constr(max_length=200)] = None
variant: Optional[constr(max_length=200)] = None
alias: Optional[constr(max_length=200)] = None
min_stage: Optional[conint(ge=-2147483648, le=2147483647)] = None
max_stage: Optional[conint(ge=-2147483648, le=2147483647)] = None
length: Optional[float] = Field(None, title='Length (m)')
diameter: Optional[float] = Field(None, title='Max Diameter (m)')
maiden_flight: Optional[date] = Field(None, title='Maiden Flight Date')
launch_mass: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Mass at Launch (T)'
)
leo_capacity: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='LEO Capacity (kg)'
)
gto_capacity: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='GTO Capacity (kg)'
)
to_thrust: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Thrust at Liftoff (kN)'
)
apogee: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Apogee - Sub-Orbital Only (km)'
)
vehicle_range: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Vehicle Range - Legacy'
)
image_url: Optional[AnyUrl] = None
info_url: Optional[constr(max_length=200)] = None
wiki_url: Optional[constr(max_length=200)] = None
consecutive_successful_launches: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
successful_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
failed_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
pending_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
class LauncherConfigList(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
family: Optional[constr(max_length=200)] = None
full_name: Optional[constr(max_length=200)] = None
variant: Optional[constr(max_length=200)] = None
class LauncherDetailed(BaseModel):
id: int
url: AnyUrl
details: Optional[constr(max_length=2048)] = None
flight_proven: Optional[bool] = None
serial_number: Optional[constr(max_length=10)] = None
status: Optional[constr(max_length=2048)] = None
image_url: Optional[AnyUrl] = None
successful_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
attempted_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
flights: Optional[conint(ge=-2147483648, le=2147483647)] = None
last_launch_date: Optional[datetime] = None
first_launch_date: Optional[datetime] = None
class Location(BaseModel):
id: int
url: AnyUrl
name: Optional[constr(max_length=255)] = None
country_code: Optional[constr(max_length=255)] = None
map_image: Optional[AnyUrl] = None
total_launch_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
total_landing_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
class MissionPatch(BaseModel):
id: int
name: constr(max_length=200)
priority: Optional[conint(ge=-2147483648, le=2147483647)] = None
image_url: AnyUrl
agency: AgencySerializerMini
class MissionType(BaseModel):
id: conint(ge=-2147483648, le=2147483647)
name: Optional[constr(max_length=255)] = None
class NoticeType(BaseModel):
id: int
name: constr(max_length=255)
class Orbit(BaseModel):
id: int
name: constr(max_length=50)
abbrev: constr(max_length=30)
class Pad(BaseModel):
id: int
url: AnyUrl
agency_id: Optional[conint(ge=-2147483648, le=2147483647)] = None
name: Optional[constr(max_length=255)] = None
info_url: Optional[AnyUrl] = None
wiki_url: Optional[AnyUrl] = None
map_url: Optional[AnyUrl] = None
latitude: Optional[constr(max_length=30)] = None
longitude: Optional[constr(max_length=30)] = None
location: Location
map_image: Optional[AnyUrl] = None
total_launch_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
orbital_launch_attempt_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
class PadSerializerNoLocation(BaseModel):
id: int
url: AnyUrl
agency_id: Optional[conint(ge=-2147483648, le=2147483647)] = None
name: Optional[constr(max_length=255)] = None
info_url: Optional[AnyUrl] = None
wiki_url: Optional[AnyUrl] = None
map_url: Optional[AnyUrl] = None
latitude: Optional[constr(max_length=30)] = None
longitude: Optional[constr(max_length=30)] = None
map_image: Optional[AnyUrl] = None
total_launch_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
class PaginatedAgencyList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Agency]] = None
class PaginatedAgencyTypeList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[AgencyType]] = None
class PaginatedAstronautRoleList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[AstronautRole]] = None
class PaginatedAstronautStatusList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[AstronautStatus]] = None
class PaginatedAstronautTypeList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[AstronautType]] = None
class PaginatedEventTypeList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[EventType]] = None
class PaginatedFirstStageTypeList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[FirstStageType]] = None
class PaginatedLaunchStatusList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[LaunchStatus]] = None
class PaginatedLocationList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Location]] = None
class PaginatedMissionTypeList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[MissionType]] = None
class PaginatedNoticeTypeList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[NoticeType]] = None
class PaginatedOrbitList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Orbit]] = None
class PaginatedPadList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Pad]] = None
class Program(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
description: Optional[constr(max_length=40000)] = None
agencies: List[AgencySerializerMini]
image_url: AnyUrl
start_date: Optional[datetime] = None
end_date: Optional[datetime] = None
info_url: Optional[AnyUrl] = None
wiki_url: Optional[AnyUrl] = None
mission_patches: List[MissionPatch]
class RoadClosureStatus(BaseModel):
id: int
name: constr(max_length=255)
class RocketSerializerCommon(BaseModel):
id: int
configuration: LauncherConfigList
class SpaceStationSerializerForDocking(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
class SpaceStationSerializerForDockingEvent(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
image_url: Optional[AnyUrl] = None
class SpaceStationStatus(BaseModel):
id: int
name: constr(max_length=255)
class SpaceStationType(BaseModel):
id: int
name: constr(max_length=255)
class SpacecraftConfigType(BaseModel):
id: int
name: constr(max_length=255)
class SpacecraftConfiguration(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
agency: Agency
in_use: Optional[bool] = None
capability: Optional[constr(max_length=2048)] = None
maiden_flight: Optional[date] = None
human_rated: Optional[bool] = None
crew_capacity: Optional[conint(ge=-2147483648, le=2147483647)] = None
image_url: Optional[AnyUrl] = None
nation_url: Optional[AnyUrl] = None
wiki_link: Optional[AnyUrl] = None
info_link: Optional[AnyUrl] = None
class SpacecraftConfigurationDetail(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
type: SpacecraftConfigType
agency: Agency
in_use: Optional[bool] = None
capability: Optional[constr(max_length=2048)] = None
history: Optional[constr(max_length=1000)] = None
details: Optional[constr(max_length=1000)] = None
maiden_flight: Optional[date] = None
height: Optional[float] = Field(None, title='Length (m)')
diameter: Optional[float] = Field(None, title='Diameter (m)')
human_rated: Optional[bool] = None
crew_capacity: Optional[conint(ge=-2147483648, le=2147483647)] = None
payload_capacity: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Payload Capacity (kg)'
)
flight_life: Optional[constr(max_length=2048)] = None
image_url: Optional[AnyUrl] = None
nation_url: Optional[AnyUrl] = None
wiki_link: Optional[AnyUrl] = None
info_link: Optional[AnyUrl] = None
class SpacecraftStatus(BaseModel):
id: int
name: constr(max_length=255)
class Update(BaseModel):
id: int
profile_image: str
comment: Optional[constr(max_length=40000)] = None
info_url: Optional[AnyUrl] = None
created_by: str
created_on: datetime
class VidURL(BaseModel):
priority: Optional[conint(ge=-2147483648, le=2147483647)] = None
title: Optional[constr(max_length=200)] = None
description: Optional[constr(max_length=350)] = None
feature_image: Optional[AnyUrl] = None
url: AnyUrl
class AgencySerializerDetailed(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
featured: Optional[bool] = None
type: Optional[constr(max_length=255)] = None
country_code: Optional[constr(max_length=1048)] = None
abbrev: Optional[constr(max_length=255)] = None
description: Optional[constr(max_length=2048)] = None
administrator: Optional[constr(max_length=200)] = None
founding_year: Optional[constr(max_length=20)] = None
launchers: Optional[constr(max_length=500)] = None
spacecraft: Optional[constr(max_length=500)] = None
parent: str
launch_library_url: str
total_launch_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
successful_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
consecutive_successful_launches: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
failed_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
pending_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
successful_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
failed_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
attempted_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
consecutive_successful_landings: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
info_url: Optional[AnyUrl] = None
wiki_url: Optional[AnyUrl] = None
logo_url: Optional[AnyUrl] = None
image_url: Optional[AnyUrl] = None
nation_url: Optional[AnyUrl] = None
launcher_list: List[LauncherConfigDetailSerializerForAgency]
spacecraft_list: List[SpacecraftConfigurationDetail]
class Astronaut(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
status: AstronautStatus
agency: AgencySerializerMini
profile_image: Optional[AnyUrl] = None
profile_image_thumbnail: Optional[AnyUrl] = None
class AstronautDetailedSerializerNoFlights(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
type: AstronautType
status: AstronautStatus
agency: AgencySerializerMini
date_of_birth: Optional[date] = None
date_of_death: Optional[date] = None
nationality: constr(max_length=255)
twitter: Optional[constr(max_length=255)] = None
instagram: Optional[constr(max_length=255)] = None
bio: constr(max_length=2048)
profile_image: Optional[AnyUrl] = None
wiki: Optional[constr(max_length=255)] = None
last_flight: Optional[datetime] = None
first_flight: Optional[datetime] = None
class AstronautFlight(BaseModel):
id: int
role: AstronautRole
astronaut: AstronautDetailedSerializerNoFlights
class AstronautFlightForExpedition(BaseModel):
id: int
role: AstronautRole
astronaut: Astronaut
class AstronautNormal(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
status: AstronautStatus
type: AstronautType
age: Optional[conint(ge=-2147483648, le=2147483647)] = None
date_of_birth: Optional[date] = None
date_of_death: Optional[date] = None
nationality: constr(max_length=255)
bio: constr(max_length=2048)
twitter: Optional[constr(max_length=255)] = None
instagram: Optional[constr(max_length=255)] = None
wiki: Optional[constr(max_length=255)] = None
agency: Agency
profile_image: Optional[AnyUrl] = None
profile_image_thumbnail: Optional[AnyUrl] = None
flights_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
landings_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
last_flight: Optional[datetime] = None
first_flight: Optional[datetime] = None
class DockingLocation(BaseModel):
id: int
name: constr(max_length=255)
spacestation: SpaceStationSerializerForDocking
class ExpeditionDetailedSerializerForSpacestation(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
start: datetime
end: Optional[datetime] = None
crew: List[AstronautFlightForExpedition]
class LandingLocation(BaseModel):
id: int
name: Optional[constr(max_length=255)] = None
abbrev: Optional[constr(max_length=255)] = None
description: Optional[constr(max_length=2048)] = None
location: Location
successful_landings: str
class Launcher(BaseModel):
id: int
url: AnyUrl
flight_proven: Optional[bool] = None
serial_number: Optional[constr(max_length=10)] = None
status: Optional[constr(max_length=2048)] = None
details: Optional[constr(max_length=2048)] = None
launcher_config: LauncherConfigList
image_url: Optional[AnyUrl] = None
flights: Optional[conint(ge=-2147483648, le=2147483647)] = None
last_launch_date: Optional[datetime] = None
first_launch_date: Optional[datetime] = None
class LauncherConfig(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
manufacturer: Agency
program: List[Program]
family: Optional[constr(max_length=200)] = None
full_name: Optional[constr(max_length=200)] = None
variant: Optional[constr(max_length=200)] = None
reusable: Optional[bool] = None
image_url: Optional[AnyUrl] = None
info_url: Optional[constr(max_length=200)] = None
wiki_url: Optional[constr(max_length=200)] = None
class LauncherConfigDetail(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
active: Optional[bool] = None
reusable: Optional[bool] = None
description: Optional[constr(max_length=2048)] = None
family: Optional[constr(max_length=200)] = None
full_name: Optional[constr(max_length=200)] = None
manufacturer: AgencySerializerDetailedCommon
program: List[Program]
variant: Optional[constr(max_length=200)] = None
alias: Optional[constr(max_length=200)] = None
min_stage: Optional[conint(ge=-2147483648, le=2147483647)] = None
max_stage: Optional[conint(ge=-2147483648, le=2147483647)] = None
length: Optional[float] = Field(None, title='Length (m)')
diameter: Optional[float] = Field(None, title='Max Diameter (m)')
maiden_flight: Optional[date] = Field(None, title='Maiden Flight Date')
launch_cost: Optional[constr(max_length=200)] = Field(None, title='Launch Cost ($)')
launch_mass: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Mass at Launch (T)'
)
leo_capacity: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='LEO Capacity (kg)'
)
gto_capacity: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='GTO Capacity (kg)'
)
to_thrust: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Thrust at Liftoff (kN)'
)
apogee: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Apogee - Sub-Orbital Only (km)'
)
vehicle_range: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Vehicle Range - Legacy'
)
image_url: Optional[AnyUrl] = None
info_url: Optional[constr(max_length=200)] = None
wiki_url: Optional[constr(max_length=200)] = None
total_launch_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
consecutive_successful_launches: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
successful_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
failed_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
pending_launches: Optional[conint(ge=-2147483648, le=2147483647)] = None
class LauncherDetail(BaseModel):
id: int
url: AnyUrl
flight_proven: Optional[bool] = None
serial_number: Optional[constr(max_length=10)] = None
status: Optional[constr(max_length=2048)] = None
details: Optional[constr(max_length=2048)] = None
launcher_config: LauncherConfigDetail
image_url: Optional[AnyUrl] = None
successful_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
attempted_landings: Optional[conint(ge=-2147483648, le=2147483647)] = None
flights: Optional[conint(ge=-2147483648, le=2147483647)] = None
last_launch_date: Optional[datetime] = None
first_launch_date: Optional[datetime] = None
class LocationDetail(BaseModel):
id: int
name: Optional[constr(max_length=255)] = None
country_code: Optional[constr(max_length=255)] = None
map_image: Optional[AnyUrl] = None
total_launch_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
total_landing_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
pads: List[PadSerializerNoLocation]
class Mission(BaseModel):
id: int
name: Optional[constr(max_length=255)] = None
description: Optional[str] = None
launch_designator: Optional[constr(max_length=255)] = None
type: str
orbit: Orbit
class PaginatedAstronautNormalList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[AstronautNormal]] = None
class PaginatedDockingLocationList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[DockingLocation]] = None
class PaginatedLandingLocationList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[LandingLocation]] = None
class PaginatedLauncherConfigList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[LauncherConfig]] = None
class PaginatedLauncherList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Launcher]] = None
class PaginatedProgramList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Program]] = None
class PaginatedRoadClosureStatusList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[RoadClosureStatus]] = None
class PaginatedSpaceStationStatusList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[SpaceStationStatus]] = None
class PaginatedSpacecraftConfigurationList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[SpacecraftConfiguration]] = None
class PaginatedSpacecraftStatusList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[SpacecraftStatus]] = None
class PaginatedUpdateList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Update]] = None
class SpaceStation(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
status: SpaceStationStatus
type: SpaceStationType
founded: date
deorbited: Optional[date] = None
description: constr(max_length=2048)
orbit: str
owners: List[AgencyList]
active_expedition: List[ExpeditionSerializerForSpacestation]
image_url: Optional[AnyUrl] = None
class SpaceStationDetailedSerializerForExpedition(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
status: SpaceStationStatus
founded: date
description: constr(max_length=2048)
orbit: str
image_url: Optional[AnyUrl] = None
owners: List[AgencyList]
class SpaceStationSerializerForCommon(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
status: SpaceStationStatus
founded: date
description: constr(max_length=2048)
orbit: str
image_url: Optional[AnyUrl] = None
class SpaceStationSerializerForExpedition(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
status: SpaceStationStatus
orbit: str
image_url: Optional[AnyUrl] = None
class SpacecraftConfig(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=200)
type: SpacecraftConfigType
agency: AgencySerializerMini
in_use: Optional[bool] = None
image_url: Optional[AnyUrl] = None
class SpacecraftDetailedNoFlights(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
serial_number: Optional[constr(max_length=255)] = None
status: SpacecraftStatus
description: constr(max_length=2048)
spacecraft_config: SpacecraftConfigurationDetail
class SpacecraftFlightSerializerForDockingEventDetailed(BaseModel):
id: int
url: AnyUrl
destination: Optional[constr(max_length=255)] = None
mission_end: Optional[datetime] = None
spacecraft: SpacecraftDetailedNoFlights
class DockingEventDetailed(BaseModel):
id: int
url: AnyUrl
launch_id: str
docking: datetime
departure: Optional[datetime] = None
flight_vehicle: SpacecraftFlightSerializerForDockingEventDetailed
docking_location: DockingLocation
space_station: SpaceStationSerializerForDockingEvent
class DockingEventSerializerForSpacecraftFlight(BaseModel):
spacestation: SpaceStationSerializerForCommon
docking: datetime
departure: Optional[datetime] = None
docking_location: DockingLocation
class Expedition(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
start: datetime
end: Optional[datetime] = None
spacestation: SpaceStationSerializerForExpedition
mission_patches: List[MissionPatch]
class ExpeditionDetail(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
start: datetime
end: Optional[datetime] = None
spacestation: SpaceStationDetailedSerializerForExpedition
crew: List[AstronautFlightForExpedition]
mission_patches: List[MissionPatch]
class Landing(BaseModel):
id: int
attempt: Optional[bool] = None
success: Optional[bool] = None
description: Optional[constr(max_length=2048)] = None
location: LandingLocation
type: LandingType
class LaunchSerializerCommon(BaseModel):
id: UUID
url: AnyUrl
slug: constr(regex=r'^[-a-zA-Z0-9_]+$')
name: Optional[constr(max_length=2048)] = None
status: LaunchStatus
last_updated: datetime
net: Optional[datetime] = None
window_end: Optional[datetime] = None
window_start: Optional[datetime] = None
probability: Optional[conint(ge=-2147483648, le=2147483647)] = None
holdreason: Optional[constr(max_length=2048)] = None
failreason: Optional[constr(max_length=2048)] = None
hashtag: Optional[constr(max_length=2048)] = None
launch_service_provider: AgencySerializerMini
rocket: RocketSerializerCommon
mission: Mission
pad: Pad
webcast_live: Optional[bool] = None
image: str
infographic: str
program: List[Program]
orbital_launch_attempt_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
location_launch_attempt_count: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
pad_launch_attempt_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
agency_launch_attempt_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
orbital_launch_attempt_count_year: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
location_launch_attempt_count_year: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
pad_launch_attempt_count_year: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
agency_launch_attempt_count_year: Optional[
conint(ge=-2147483648, le=2147483647)
] = None
class PaginatedExpeditionList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Expedition]] = None
class PaginatedLaunchSerializerCommonList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[LaunchSerializerCommon]] = None
class PaginatedSpaceStationList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[SpaceStation]] = None
class Spacecraft(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
serial_number: Optional[constr(max_length=255)] = None
status: SpacecraftStatus
description: constr(max_length=2048)
spacecraft_config: SpacecraftConfig
class SpacecraftFlight(BaseModel):
id: int
url: AnyUrl
destination: Optional[constr(max_length=255)] = None
mission_end: Optional[datetime] = None
spacecraft: Spacecraft
launch: LaunchSerializerCommon
class SpacecraftFlightDetailed(BaseModel):
id: int
url: AnyUrl
mission_end: Optional[datetime] = None
destination: Optional[constr(max_length=255)] = None
launch_crew: List[AstronautFlight]
onboard_crew: List[AstronautFlight]
landing_crew: List[AstronautFlight]
spacecraft: SpacecraftDetailedNoFlights
launch: LaunchSerializerCommon
docking_events: List[DockingEventSerializerForSpacecraftFlight]
class SpacecraftFlightDetailedSerializerForLaunch(BaseModel):
id: int
url: AnyUrl
mission_end: Optional[datetime] = None
destination: Optional[constr(max_length=255)] = None
launch_crew: List[AstronautFlight]
onboard_crew: List[AstronautFlight]
landing_crew: List[AstronautFlight]
spacecraft: SpacecraftDetailedNoFlights
docking_events: List[DockingEventSerializerForSpacecraftFlight]
class SpacecraftFlightForDockingEvent(BaseModel):
id: int
url: AnyUrl
spacecraft: SpacecraftDetailedNoFlights
launch: LaunchSerializerCommon
class SpacecraftFlightSerializerForDockingEvent(BaseModel):
id: int
url: AnyUrl
destination: Optional[constr(max_length=255)] = None
mission_end: Optional[datetime] = None
spacecraft: Spacecraft
class AstronautDetailed(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
status: AstronautStatus
type: AstronautType
agency: AgencySerializerMini
age: Optional[conint(ge=-2147483648, le=2147483647)] = None
date_of_birth: Optional[date] = None
date_of_death: Optional[date] = None
nationality: constr(max_length=255)
twitter: Optional[constr(max_length=255)] = None
instagram: Optional[constr(max_length=255)] = None
bio: constr(max_length=2048)
profile_image: Optional[AnyUrl] = None
profile_image_thumbnail: Optional[AnyUrl] = None
wiki: Optional[constr(max_length=255)] = None
flights: List[LaunchSerializerCommon]
landings: List[SpacecraftFlight]
flights_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
landings_count: Optional[conint(ge=-2147483648, le=2147483647)] = None
last_flight: Optional[datetime] = None
first_flight: Optional[datetime] = None
class DockingEvent(BaseModel):
id: int
url: AnyUrl
launch_id: str
docking: datetime
departure: Optional[datetime] = None
flight_vehicle: SpacecraftFlightSerializerForDockingEvent
docking_location: DockingLocation
class DockingEventDetailedSerializerForSpacestation(BaseModel):
id: int
url: AnyUrl
docking: datetime
departure: Optional[datetime] = None
flight_vehicle: SpacecraftFlightForDockingEvent
class DockingLocationSerializerForSpacestation(BaseModel):
id: int
name: constr(max_length=255)
docked: DockingEventDetailedSerializerForSpacestation
class Events(BaseModel):
id: int
url: AnyUrl
slug: constr(regex=r'^[-a-zA-Z0-9_]+$')
name: constr(max_length=200)
updates: List[Update]
type: EventType
description: Optional[constr(max_length=2048)] = None
webcast_live: Optional[bool] = None
location: Optional[constr(max_length=100)] = None
news_url: Optional[AnyUrl] = None
video_url: Optional[AnyUrl] = None
feature_image: Optional[AnyUrl] = None
date: Optional[datetime] = None
launches: List[LaunchSerializerCommon]
expeditions: List[Expedition]
spacestations: List[SpaceStationSerializerForCommon]
program: List[Program]
class FirstStage(BaseModel):
id: int
type: str
reused: Optional[bool] = None
launcher_flight_number: Optional[conint(ge=-2147483648, le=2147483647)] = None
launcher: LauncherDetailed
landing: Landing
previous_flight_date: Optional[datetime] = None
turn_around_time_days: Optional[conint(ge=-2147483648, le=2147483647)] = None
previous_flight: LaunchSerializerMini
class PaginatedDockingEventList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[DockingEvent]] = None
class PaginatedEventsList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Events]] = None
class PaginatedSpacecraftFlightList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[SpacecraftFlight]] = None
class PaginatedSpacecraftList(BaseModel):
count: Optional[int] = Field(None, example=123)
next: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=400&limit=100'
)
previous: Optional[AnyUrl] = Field(
None, example='http://api.example.org/accounts/?offset=200&limit=100'
)
results: Optional[List[Spacecraft]] = None
class RocketDetailed(BaseModel):
id: int
configuration: LauncherConfigDetail
launcher_stage: List[FirstStage]
spacecraft_stage: SpacecraftFlightDetailedSerializerForLaunch
class SpaceStationDetailed(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
status: SpaceStationStatus
type: SpaceStationType
founded: date
deorbited: Optional[date] = None
height: Optional[float] = Field(None, title='Height (m)')
width: Optional[float] = Field(None, title='Width (m)')
mass: Optional[float] = Field(None, title='Mass (T)')
volume: Optional[conint(ge=-2147483648, le=2147483647)] = Field(
None, title='Volume (m^3)'
)
description: constr(max_length=2048)
orbit: str
onboard_crew: Optional[conint(ge=-2147483648, le=2147483647)] = None
docked_vehicles: Optional[conint(ge=-2147483648, le=2147483647)] = None
owners: List[Agency]
active_expeditions: List[ExpeditionDetailedSerializerForSpacestation]
docking_location: List[DockingLocationSerializerForSpacestation]
image_url: Optional[AnyUrl] = None
class SpacecraftDetailed(BaseModel):
id: int
url: AnyUrl
name: constr(max_length=255)
serial_number: Optional[constr(max_length=255)] = None
status: SpacecraftStatus
description: constr(max_length=2048)
spacecraft_config: SpacecraftConfigurationDetail
flights: List[SpacecraftFlight]
class LaunchDetailed(BaseModel):
id: UUID
url: AnyUrl
slug: constr(regex=r'^[-a-zA-Z0-9_]+$')
flightclub_url: AnyUrl
r_spacex_api_id: str
name: str
status: LaunchStatus
last_updated: datetime
updates: List[Update]
net: datetime
window_end: datetime
window_start: datetime
probability: int
holdreason: str
failreason: str
hashtag: str
launch_service_provider: AgencySerializerDetailedCommon
rocket: RocketDetailed
mission: Mission
pad: Pad
infoURLs: List[InfoURL]
vidURLs: List[VidURL]
webcast_live: bool
image: str
infographic: str
program: List[Program]
orbital_launch_attempt_count: int
location_launch_attempt_count: int
pad_launch_attempt_count: int
agency_launch_attempt_count: int
orbital_launch_attempt_count_year: int
location_launch_attempt_count_year: int
pad_launch_attempt_count_year: int
agency_launch_attempt_count_year: int
mission_patches: List[MissionPatch] |
Beta Was this translation helpful? Give feedback.
@azatoth
I'm sorry for my too-late reply.
I have tested the shcema.
But, I can't find the components.
I guess the leatest version is resolved the problem.