Skip to content

[docs] Remove validate_parameters from External API Docs? #1485

@justusdieckmann

Description

@justusdieckmann

What is the URL of the page?

https://moodledev.io/docs/5.0/apis/subsystems/external/writing-a-service
https://moodledev.io/docs/5.0/apis/subsystems/external/functions
https://moodledev.io/docs/5.0/apis/subsystems/external/security

What is the issue with this page?

Hey,

I was wondering why the documentation 'forces' developers to use validate_parameters inside an external_api execute function, when the same validation is already done by the calling external_api::call_external_function in line 228, and couldn't find an answer anywhere.

In case there is no reason, I would be happy to make a patch deleting those sections (and really happy not needing to write those - in my eyes a bit ugly - lines anymore).

Maybe @andrewnicols might be the right person to say something about that :)

Thank you very much,
Justus

Are you able to provide a patch for this?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationhelp wantedExtra attention is neededneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions