Skip to content

Step1 filter out "Trivial" policy items #15

@boazdavid

Description

@boazdavid

When the API already enforce this by its data structure.

example:

{
      "name": "Same Flight and Cabin for All Passengers",
      "description": "All passengers in a reservation must fly the same flights in the same cabin when booking.",
      "references": [
        "All passengers must fly the same flights in the same cabin."
      ],
}

API:

    def book_reservation(
        self,
        user_id: str,
        origin: str,
        destination: str,
        flight_type: FlightType,
        cabin: CabinClass,
        flights: List[FlightInfo | dict],
        **passengers: List[Passenger | dict],**
        payment_methods: List[Payment | dict],
        total_baggages: int,
        nonfree_baggages: int,
        insurance: Insurance,
    ) -> Reservation:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions