Zaid-Ajaj / Snowflaqe

A dotnet CLI to generate type-safe GraphQL clients for F# and Fable with automatic deserialization, static query verification and type checking
MIT License
154 stars 25 forks source link

Adding new F# keyword "fixed" #90

Closed jessejfhong closed 10 months ago

jessejfhong commented 11 months ago

fixed

I've got issue generating code for Shopify Admin schema, they use "fixed" in names.

{
                    "kind": "INPUT_OBJECT",
                    "name": "SellingPlanPricingPolicyInput",
                    "description": "The input fields required to create or update a selling plan pricing policy.",
                    "fields": null,
                    "inputFields": [
                        {
                            "name": "recurring",
                            "description": "Recurring pricing policy details.",
                            "type": {
                                "kind": "INPUT_OBJECT",
                                "name": "SellingPlanRecurringPricingPolicyInput",
                                "ofType": null
                            },
                            "defaultValue": null
                        },
                        {
                            "name": "fixed",
                            "description": "Fixed pricing policy details.",
                            "type": {
                                "kind": "INPUT_OBJECT",
                                "name": "SellingPlanFixedPricingPolicyInput",
                                "ofType": null
                            },
                            "defaultValue": null
                        }
                    ],
                    "interfaces": null,
                    "enumValues": null,
                    "possibleTypes": null
                }
Zaid-Ajaj commented 10 months ago

Hi there @loopercorp that's a good catch! Any chance you could send a PR with the fix for this? 🙏