rescript-openapi 0.1.0

Generate type-safe ReScript clients from OpenAPI specifications
Documentation
---
source: tests/codegen_tests.rs
assertion_line: 74
expression: schema
---
// SPDX-License-Identifier: PMPL-1.0-or-later
// Generated by rescript-openapi - DO NOT EDIT
// Source: DateTime API v1.0.0

open ApiTypes

module S = RescriptSchema.S

let eventSchema: S.t<event> = S.object(s => ({
  id: s.fieldOr("id", S.option(S.string), None),
  timestamp: s.fieldOr("timestamp", S.option(S.datetime), None),
  createdAt: s.fieldOr("created_at", S.option(S.datetime), None),
  scheduledFor: s.fieldOr("scheduled_for", S.option(S.string), None),
}: event))