Skip to content

Make fields optional if they can't be handled correctly #36

Description

@prostraction
GET /v1/moonPhaseDate?utc=5&day=1&month=1&year=9999&hour=12&minute=0&second=0&lang=ru&latitude=51.1655&longitude=71.4272
{
  "BeginDay": {
    "MoonDays": 0,
    "Illumination": 82.27,
    "Phase": {
      "Name": "Waning Gibbous",
      "NameLocalized": "Убывающая луна",
      "Emoji": "🌖",
      "IsWaxing": false
    },
    "Zodiac": {
      "Name": "Virgo",
      "NameLocalized": "Дева",
      "Emoji": "♍"
    }
  },
  "CurrentState": {
    "MoonDays": 0,
    "Illumination": 78.09,
    "Phase": {
      "Name": "Waning Gibbous",
      "NameLocalized": "Убывающая луна",
      "Emoji": "🌖",
      "IsWaxing": false
    },
    "Zodiac": {
      "Name": "Virgo",
      "NameLocalized": "Дева",
      "Emoji": "♍"
    }
  },
  "EndDay": {
    "MoonDays": 0,
    "Illumination": 73.67,
    "Phase": {
      "Name": "Waning Gibbous",
      "NameLocalized": "Убывающая луна",
      "Emoji": "🌖",
      "IsWaxing": false
    },
    "Zodiac": {
      "Name": "Virgo",
      "NameLocalized": "Дева",
      "Emoji": "♍"
    }
  },
  "MoonDaysDetailed": {
    "Count": 1,
    "Day": [
      {
        "IsBeginExists": false,
        "IsEndExists": false
      },
      {
        "IsBeginExists": false,
        "IsEndExists": false
      }
    ]
  },
  "ZodiacDetailed": {
    "Count": 1,
    "Zodiac": [
      {
        "Name": "Virgo",
        "NameLocalized": "Дева",
        "Emoji": "♍",
        "Begin": "0001-01-01T00:00:00Z",
        "End": "0001-01-01T00:00:00Z"
      }
    ]
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions