Skip to content

#1269 - parse doc block to identify whether method should be used in API #1270

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

Open
wants to merge 2 commits into
base: 6.8.x
Choose a base branch
from

Conversation

michalcharvat
Copy link
Contributor

The doc block is parsed to detect the @noapi tag, which allows you to exclude a getter from the API while still keeping clean method names starting with get.

@michalcharvat michalcharvat requested a review from mschering April 18, 2025 10:30
@mschering
Copy link
Member

A problem with this approach is that it won’t work in the paid / encoded modules. What do you need it for? Perhaps use a different name?

@michalcharvat
Copy link
Contributor Author

The reason is simple — to keep the code clean while still allowing you to use the getter as usual.
Currently, if you create a getX method, it will automatically be used by the API. With this hint, you can instruct the API parser to exclude that method from the API output.

I have uses or seen somewhere an array of properties that allowed you to include, exclude, or cast attributes when interacting with the API. Maybe the idea with the arrays isnt bad because sometimes you need to exclude passwords etc

If we’re talking about paid modules, I’m not entirely sure at the moment.
Previously, we had to encode one project where we used the @Remotable flag in the documentation, which also registered methods for Ext.Direct—and there was no problem.

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.

2 participants