Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Missing Support For Custom Hostname Properties #178

Conversation

phily245
Copy link
Contributor

@phily245 phily245 commented Jun 14, 2021

As mentioned in #177, there are some missing properties from custom hostname creation (shown at https://api.cloudflare.com/#custom-hostname-for-a-zone-create-custom-hostname). This PR attempts to add these in.

Closes #177

phily245 added 2 commits June 15, 2021 00:49
This now matches what is available as per the documentation
I've added a few new parameters which has made these lines rather long
@phily245
Copy link
Contributor Author

I used TDD on this so I haven't tested yet, but I suspect the options are in the wrong place according to the docs.

I'll fix this tomorrow.

This wasn't taking affect before as it wasn't in the object the API was
expecting it to be in
@phily245
Copy link
Contributor Author

I used TDD on this so I haven't tested yet, but I suspect the options are in the wrong place according to the docs.

I'll fix this tomorrow.

I was right, testing this on live proved that not only my options were at the wrong level, but the wildcard flag was too (as they're all the same level in the docs). I've pushed a fix for this

@jacobbednarz
Copy link
Member

I'm happy to review these PRs you've raised if you fix those lint failures in CI

This was asked for in a CR
@phily245
Copy link
Contributor Author

I'm happy to review these PRs you've raised if you fix those lint failures in CI

Thank you, I can look at this today 😄

phily245 added 8 commits June 22, 2021 10:07
This was my bad
This kinda kicks the can down the road, but allows me to appease PHPMD
(for now)
This was a good spot, as I can reuse this declaration in another PR
I needed to trigger a github action after a network timeout
…github.com:phily245/cloudflare-php into 177-missing-support=for=custom-hostname-properties
This reverts commit ed822d1.
@phily245
Copy link
Contributor Author

@jacobbednarz the failing lint has been addressed

@jacobbednarz jacobbednarz merged commit a73da76 into cloudflare:master Jun 22, 2021
@jacobbednarz
Copy link
Member

awesome, thanks! 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Support For Custom Hostname Creation Properties
2 participants